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

403 error with e621 #651

Closed
catlover1019 opened this issue Mar 22, 2020 · 2 comments
Closed

403 error with e621 #651

catlover1019 opened this issue Mar 22, 2020 · 2 comments
Labels

Comments

@catlover1019
Copy link

Here's an example with a random image
_____@____-ubuntu:/vol/Docudrive/Downloads$ ./gallery-dl.bin https://e621.net/posts/2188212 [e621][error] HttpError: '403 Forbidden' for 'https://e621.net/posts/2188212.json'
I'm using the latest release and I did add my username and API key to the config file.

mikf added a commit that referenced this issue Mar 22, 2020
- use extractor implementations from 'danbooru'
- use "page": "b[ID]" to paginate over results instead of
  "tags": "id:<[ID]", avoiding infinite loops with certain
  post orders
- bump User-Agent version
@mikf
Copy link
Owner

mikf commented Mar 22, 2020

e621 devs have rightfully blocked gallery-dl from using their API.
(specifically any request with a User-Agent header starting with gallery-dl/1.13)

My implementation had a bug when trying to limit requests to a maximum of 1 per second (9b39e1c) and its method of paginating over API results caused an infinite loop under certain conditions (ad2efa8).

This should now all be fixed, and I've also bumped the User-Agent version number so it doesn't get blocked anymore.

@mikf mikf added the fixed label Mar 22, 2020
@catlover1019
Copy link
Author

e621 devs have rightfully blocked gallery-dl from using their API.
(specifically any request with a User-Agent header starting with gallery-dl/1.13)

My implementation had a bug when trying to limit requests to a maximum of 1 per second (9b39e1c) and its method of paginating over API results caused an infinite loop under certain conditions (ad2efa8).

This should now all be fixed, and I've also bumped the User-Agent version number so it doesn't get blocked anymore.

Thanks a ton. I'll check it out when the next release happens, mostly because only the binaries work properly with Patreon for me, and I don't wanna juggle multiple versions.

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