Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to generate refresh token #717

Closed
Ksdpm opened this issue May 27, 2020 · 8 comments
Closed

unable to generate refresh token #717

Ksdpm opened this issue May 27, 2020 · 8 comments

Comments

@Ksdpm
Copy link

Ksdpm commented May 27, 2020

Prerequisites

  • [Y] Did you read FAQ section?
  • [Y] Did you test with the latest releases or commit ?

Description

no refresh token is generated

Steps to Reproduce

  1. fill in all the details in config.ini
  2. run
  3. wait

Expected behavior: automatic generation of refresh token

Actual behavior: blank

Versions pixivutil20200524

You can get this information from executing PixivUtil2.py --help.
Latest version available in https://github.com/Nandaka/PixivUtil2/releases

Tried the method suggested earlier where I change my useragent to match my broswer i.e. Chrome/81.0.4044.138 bu this is still not solving the issue

@bluerthanever
Copy link
Contributor

I think I've seen a similar issue before.
The answer was pretty much like: if refresh token is not required for the actions you use, then it would not be obtained.

Do you have any problem downloading anything?

@Ksdpm
Copy link
Author

Ksdpm commented Jun 1, 2020

I am trying to download from my supported artist on Fanbox.
Without the refresh token, I just receive the OAuth failed message.

@bluerthanever
Copy link
Contributor

bluerthanever commented Jun 1, 2020

If the tool fails to obtain the token when it's needed, there should be error messages?
Do you mind posting them if any?

@Ksdpm
Copy link
Author

Ksdpm commented Jun 1, 2020

Hi, sure, here is what's happening:

Trying to log in FANBOX with saved cookie
FANBOX Login successful.
Getting supported artists from https://api.fanbox.cc/plan.listSupporting
Found 5 supported artist(s)

displaying supported artist

Using OAuth to retrieve member info for: 1657441
103:pixiv ID、またはメールアドレス、パスワードが正しいかチェックしてください。
Failed to login using OAuth
press enter to exit.

@bluerthanever
Copy link
Contributor

#631
Might be similar to this one?
What do you have in your config for username and password? Are they empty or dummies? If so, can you try filling them with your account and password?
If not, and you are using "username" username or "email" username, can you try switching to the other one and try again?

@Ksdpm
Copy link
Author

Ksdpm commented Jun 1, 2020

Hi,

I have actually tried the method you linked and it used to work, up till fanbox changed their address. This has only become a problem since the change by fanbox.

@bluerthanever
Copy link
Contributor

bluerthanever commented Jun 1, 2020

Hmm. I have no problem with using fanbox though so far...
Just tried deleting the token from my config and download from fanbox, it had no problem retrieving refresh token at all.
Do you mind generating a new log file and posting it?

(BTW, you didn't delete the artist number in one of your previous posts.)

@Nandaka
Copy link
Owner

Nandaka commented Jun 1, 2020

Try to use your email address for the username? the error message state something about email/password is not correct.

@Nandaka Nandaka closed this as completed Jul 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants