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

Server reply: {u'captcha': u'The characters do not match.'} #505

Open
ricksee opened this issue Jun 27, 2019 · 22 comments
Open

Server reply: {u'captcha': u'The characters do not match.'} #505

ricksee opened this issue Jun 27, 2019 · 22 comments
Labels

Comments

@ricksee
Copy link

ricksee commented Jun 27, 2019

Prerequisites

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

Description

I tried to login using but it keeps giving me an error about characters not matching. It returned as this: Server reply: {u'captcha': u'The characters do not match.'}. I changed my password to make sure but the same error returns every time. I even tried to put in my information under the config file, but same error. I also made another account to see, but nothing worked.

Steps to Reproduce

  1. Enter your login information.

Expected behavior: [What you expected to happen]
I should've logged in.

Actual behavior: [What actually happened]
The program cannot access my account.

Versions

Latest.

You can get this information from executing PixivUtil2.py --help.

@Nandaka
Copy link
Owner

Nandaka commented Jun 27, 2019

can you open the website without shown with captcha request? This program doesn't support captcha, so you best bet is by copying the cookies value after you login successfully to the website.

EDIT: usually login shouldn't show any captcha request, unless pixiv server detect anomaly with your account or ipaddress.

@NonaSuomi
Copy link

Same issue here- the suggested workaround allowed the app to bypass the captcha, but if Pixiv's authentication is getting wise to this app, it might be good to have some way to present the captcha to the user instead of having the login fail outright.

For others with this issue, the specific cookie you need to copy is PHPSESSID for pixiv.net (not the www site, just bare pixiv.net) and it appears to have a 1 month expiry, so you'll be doing this again in about four weeks.

@dolco2
Copy link

dolco2 commented Jun 29, 2019

Same here

copying the cookies value after you login successfully to the website.

How and where should I find my profile's cookies?

@AvocadoFlour
Copy link

AvocadoFlour commented Jun 29, 2019

Thank you @NonaSuomi.

@Nandaka
Copy link
Owner

Nandaka commented Jul 11, 2019

@dolco2

      - Copy your session values from browser:
        1. Open Firefox.
        2. Go to Pixiv website and login.
        3. Right click the page and select View Page Info.
        4. Click the Security tab.
        5. Click the View Cookies button.
        6. Look for Cookie named = PHPSESSID.
        7. Copy the content value and save it to the config.ini in the Authentication section.

@rafissia
Copy link

ummm why i can't see my cookies I've been looking for 20 minutes to found nothing

@Nandaka
Copy link
Owner

Nandaka commented Jul 31, 2019

Using Chrome Dev Tools

  1. Login to pixiv.
  2. press F12, select the application tab -> Storage -> Cookies
  3. Select pixiv.net, copy the value of PHPSESSID
    image

@zoram999
Copy link

zoram999 commented Aug 2, 2019

Thanks Nandaka, it worked. I don't know how you manage to visualize the dev tools as they appear in your screenshot, but at least I know how to do with the cookies in the Settings of Chrome.

However, just until today I had been using the 0501 version with all my accounts (after the problems of a few months ago I split my old account and its many bookmarks into smaller, more manageable ones) smoothly, never ran into this issue.
Then just like I do from time to time, I decided to delete the old version and get the new one... now I regret it because while this is not a difficult operation, I have to repeat it for every account, deleting and copying cookies every time.

Of course, it may just be that since my instances of the older version got the cookies last time, something more changed on pixiv so that version too would run into the same issue if I reinstalled it now.
At they very least, it may mean that the cookies last more than a month - I'll see in early September.

@Nandaka Nandaka mentioned this issue Sep 14, 2019
This was referenced Sep 28, 2019
Nandaka added a commit that referenced this issue Nov 1, 2019
Nandaka added a commit that referenced this issue Nov 1, 2019
@Nandaka Nandaka added the Monitor label May 1, 2020
@gvfgfgv
Copy link

gvfgfgv commented Aug 1, 2020

And how this works with opera? I can't find a cookie list.

@Nandaka
Copy link
Owner

Nandaka commented Aug 1, 2020

Q3. I cannot login to Pixiv!
    - Check your password.
    - Try to login to the Pixiv Website.
    - Try to use the config.ini on the [Authentication] section.
    - Check your date and time setting (e.g.: https://www.timeanddate.com/)
    - Disable Daylight Saving Time and try again.
    - Copy your session values from browser:
      1. Open Firefox.
      2. Go to Pixiv website and login, remember to enable [Remember Me]
          check box.
      3. Right click the page and select View Page Info.
      4. Click the Security tab.
      5. Click the View Cookies button.
      6. Look for Cookie named = PHPSESSID.
      7. Copy the content value.
      8. Open config.ini, go to [Authentication] section, paste the value
          to cookie, set keepsignedin = 1.

if you are using chrome:

  1. Go to Pixiv Website and login in the browser.
  2. Press F12, choose Application tab.
  3. On the left side, choose Storage -> Cookies -> https://www.pixiv.net.
    image
  4. Copy the value for PHPSESSID and paste it to the config.ini file on the Authentication section.
    image

@Nandaka
Copy link
Owner

Nandaka commented Aug 1, 2020

take a screen shot?

@gvfgfgv
Copy link

gvfgfgv commented Aug 1, 2020

Now I tried an older release and it works.

@Nandaka
Copy link
Owner

Nandaka commented Aug 22, 2020

This might be able to be fixed using https://github.com/borisbabic/browser_cookie3 (need to login from your browser first, only support firefox and chrome).

@pongsatond
Copy link

Untitled

@Nandaka
Copy link
Owner

Nandaka commented Oct 15, 2020

@pongsatond see #814

@pongsatond
Copy link

@pongsatond see #814

Aw chucks. I gave up.

@Nandaka Nandaka unpinned this issue Oct 21, 2020
@ee092884
Copy link

ee092884 commented Oct 26, 2020

2020/11/04 has changed back to the old format of cookies

I currently test out a way to download in full mode normally
When you change the password and play this screen, use F12 to directly view the new PHPSESSID
Can change the same password
Don’t go to the pixiv homepage to check the PHPSESSID
Will not display the number of ID "XXXXXXX_" but only the command line after _
EDIT: also check your browser user-agent to match with config.ini
image

35122 pushed a commit to 35122/PixivUtil2 that referenced this issue Oct 30, 2020
35122 pushed a commit to 35122/PixivUtil2 that referenced this issue Oct 30, 2020
@Vtothe4
Copy link

Vtothe4 commented Jun 23, 2021

where do i put the cookies?

@AsrielDreemurr20xx
Copy link

Where do I find config.ini I've been searching for ages

@yoshi4500
Copy link

it work for pixiv, but i don't know what to do for pixiv fanbox

@yoshi4500
Copy link

please someone help me

@Sylphystia
Copy link

Where do I find config.ini I've been searching for ages

The file is created the first time you run the script if it's not there. In the same folder as everything else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests