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

Pixiv - API Request Failed #596

Closed
AcroBanwagon opened this issue Feb 1, 2020 · 2 comments
Closed

Pixiv - API Request Failed #596

AcroBanwagon opened this issue Feb 1, 2020 · 2 comments
Labels

Comments

@AcroBanwagon
Copy link

Output of gallery-dl -v 'https://www.pixiv.net/bookmark.php?tag=character'

[gallery-dl][debug] Version 1.12.3
[gallery-dl][debug] Python 3.8.1 - Linux-5.4.15-arch1-1-x86_64-with-glibc2.2.5
[gallery-dl][debug] requests 2.22.0 - urllib3 1.25.8
[gallery-dl][debug] Starting DownloadJob for 'https://www.pixiv.net/bookmark.php?tag=character'
[pixiv][debug] Using PixivFavoriteExtractor for 'https://www.pixiv.net/bookmark.php?tag=character'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): app-api.pixiv.net:443
[urllib3.connectionpool][debug] https://app-api.pixiv.net:443 "GET /v1/user/detail?user_id=-1 HTTP/1.1" 400 142
[pixiv][error] API request failed: {'user_message': '', 'message': '{"user_id":["User Id must be at least 0"]}', 'reason': '', 'user_message_details': {}}

I do have my login saved in the gallery-dl config, I have also tried using the -u and -p options, and got this exact same message. I am able to login to my pixiv account in Firefox using the login in the config file.

@mikf mikf added the bug label Feb 1, 2020
@mikf
Copy link
Owner

mikf commented Feb 1, 2020

As a workaround, you can add your own user id as query parameter:
https://www.pixiv.net/bookmark.php?tag=character&id=...

@AcroBanwagon
Copy link
Author

Thanks, that worked.

@mikf mikf closed this as completed in 40fe062 Feb 1, 2020
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

2 participants