-
Notifications
You must be signed in to change notification settings - Fork 254
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
Login cookie issue (update user agent to fix) #1239
Comments
pixivutil.log |
The login request to
Edit: Use solution by Nanoka if you're not running from source
|
Wow I was just using it moments ago, if you had the utility still running, it would work, but now it won't. |
same getting HTTP Error 403: Forbidden |
maybe related to #1209 as the solution i found that time seems to work now as well |
Doesn't work for me |
is your config.ini set exactly like this:
which version are you running? did you try launching a new instance after the failed attempt? are you using proxy? |
Best answer! Worth to be highlighted |
I can also confirm it worked. I deleted the rest of the text, I only kept Mozilla/5.0 and I logged in this time |
Can confirm. Worked perfectly. I tested it prior to modifying the INI and it had the error. With the change it had no issues. |
[Network] is what default settings is i guess ? |
Setting user-agent to just To see the default settings you can either look in the source code or delete/rename your INI file and then let the program recreate it. |
works |
Changing user-agent doesn't work for me while running from source on linux. Still get the 403 error. |
@na3i09 "useragent = Mozilla/5.0" did you use that? if so, idk other workaround |
yeah, no dice when using the source version. |
Try changing With this it may work without changing the user agent. |
For those who have tried both and still have issues, Go to pixiv.net, log out, log back in, and replace the cookie in config.ini with the newly generated one. |
useragent = Mozilla / 5.0 is not work |
I still cannot log in using the session cookie and the proper user agent. |
Created a pull request #1281 Hopefully fixes http:403 forbidden and people's confusion |
MAN, this thread is making zero sense to me. I cant keep up |
Hi, please kindly stop posting non-constructive comments that disturbs everyone subscribed to this issue or repo. Also, I would appreciate it if you can stop downvoting a solution that has expired for nearly a year ¯\_(ツ)_/¯. I've already pointed out that you should use the solution by Nanoka, which worked very well. My automation script run twice a day and never fails since I switched to that solution. |
Looks like Nandaka#1239 is still the case, with pixiv now blocking the current user agent, too. Switching it to the recommended value from 1239, however, works.
Looks like Nandaka#1239 is still the case, with pixiv now blocking the current user agent, too. Switching it to the recommended value from 1239, however, works.
This also removes the code that got commented off in Nandaka#1239, because either it's no longer need (so it doesn't need to be in the code at all) or it may be needed "sometimes" in which case it should probably live uncommented inside an `if` block.
* Change useragent to something that doesn't get blocked Looks like #1239 is still the case, with pixiv now blocking the current user agent, too. Switching it to the recommended value from 1239, however, works. * Remove "dead" code This also removes the code that got commented off in #1239, because either it's no longer need (so it doesn't need to be in the code at all) or it may be needed "sometimes" in which case it should probably live uncommented inside an `if` block. * Link to the relevant README.md section Added a link so people can easily get the information they need to fix the problem. * (missing newline)
I'm having this issue now, just pulled main down to try to fix it, but it is persisting. I've logged out and back in to re-aquire my cookie from firefox multiple times but it continues to give me this error. I had the thought that I may be populating the cookie incorrectly, but if I change the last character to make it invalid I get a different error:
So it seems like my cookie is correct and then something else is causing it to fail. I have tried both |
Nandaka, on pixiv fanbox i keep etting this Configuration loaded. i re appied the default pixiv worksfine just fanbox not and i have no clue what i do wrong the view cookies i use this addon "cookie editor" i have no clue what this cloudfare thing is -edit i think i came a step further by editing the useragent Input: f2 |
I reinstalled it.
I logged in and replaced the cookie, but the same phrase came out.
Trying to log in with saved cookie
Error at doLogin(): (<class 'mechanize._response.get_seek_wrapper_class..httperror_seek_wrapper'>, <httperror_seek_wrapper (urllib.error.HTTPError instance) at 0x1e0f201f250 whose wrapped object = <HTTPError 403: 'Forbidden'>>, <traceback object at 0x000001E0F01B7800>)
Traceback (most recent call last):
File "PixivUtil2.py", line 1524, in doLogin
File "PixivBrowserFactory.py", line 347, in loginUsingCookie
File "PixivBrowserFactory.py", line 207, in open_with_retry
File "mechanize_mechanize.py", line 257, in open
File "mechanize_mechanize.py", line 313, in _mech_open
mechanize._response.get_seek_wrapper_class..httperror_seek_wrapper: HTTP Error 403: Forbidden
Cannot Login!
press enter to exit.
The text was updated successfully, but these errors were encountered: