PixivUtil2 icon indicating copy to clipboard operation
PixivUtil2 copied to clipboard

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

Open ricksee opened this issue 5 years ago • 22 comments

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.

ricksee avatar Jun 27 '19 12:06 ricksee

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.

Nandaka avatar Jun 27 '19 13:06 Nandaka

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.

NonaSuomi avatar Jun 27 '19 19:06 NonaSuomi

Same here

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

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

dolco2 avatar Jun 29 '19 15:06 dolco2

Thank you @NonaSuomi.

AvocadoFlour avatar Jun 29 '19 23:06 AvocadoFlour

@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.

Nandaka avatar Jul 11 '19 15:07 Nandaka

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

rafissia avatar Jul 31 '19 12:07 rafissia

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

Nandaka avatar Jul 31 '19 16:07 Nandaka

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.

zoram999 avatar Aug 02 '19 06:08 zoram999

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

gvfgfgv avatar Aug 01 '20 02:08 gvfgfgv

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 avatar Aug 01 '20 08:08 Nandaka

take a screen shot?

Nandaka avatar Aug 01 '20 10:08 Nandaka

Now I tried an older release and it works.

gvfgfgv avatar Aug 01 '20 11:08 gvfgfgv

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).

Nandaka avatar Aug 22 '20 03:08 Nandaka

Untitled

pongsatond avatar Oct 14 '20 18:10 pongsatond

@pongsatond see #814

Nandaka avatar Oct 15 '20 00:10 Nandaka

@pongsatond see #814

Aw chucks. I gave up.

pongsatond avatar Oct 15 '20 09:10 pongsatond

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

ee092884 avatar Oct 26 '20 15:10 ee092884

where do i put the cookies?

Vtothe4 avatar Jun 23 '21 03:06 Vtothe4

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

AsrielDreemurr20xx avatar Jul 05 '21 10:07 AsrielDreemurr20xx

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

yoshi4500 avatar Jul 08 '21 00:07 yoshi4500

please someone help me

yoshi4500 avatar Jul 08 '21 00:07 yoshi4500

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.

Sylphystia avatar Sep 08 '21 11:09 Sylphystia