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

Wating - Rate limit Reset - infinite #4914

Closed
woodyDevTech opened this issue Dec 11, 2023 · 8 comments
Closed

Wating - Rate limit Reset - infinite #4914

woodyDevTech opened this issue Dec 11, 2023 · 8 comments

Comments

@woodyDevTech
Copy link

I have a problem when running gallery-dl:
command:
gallery-dl.exe https://twitter.com/fulgrownbabyman/status/1731450840613875732
I get this:
MicrosoftTeams-image (4)

This is only happening on one machine, other machines are working, and I'm not sure how to fix this, tried may gallery-dl options, any suggestion?

@mikf
Copy link
Owner

mikf commented Dec 11, 2023

This is only happening on one machine, other machines are working

Are they all using the same external IP and/or account?

gallery-dl's Twitter settings should have no influence on this. This is most likely Twitter blocking this specific computer/Twitter account/IP.

@woodyDevTech
Copy link
Author

But I can open twitter normally on the browser and it works, any possible for cashing with gallery dl? Coz i noticed that twitter does not work with "chromium" yet works with other browsers. Would that affect gallery-dl somehow?

@mikf
Copy link
Owner

mikf commented Dec 11, 2023

gallery-dl uses a Firefox user agent by default.

I just noticed that you are using a guest token. That's probably the problem, together with everything else. gallery-dl's way of acquiring one of these tokens is not how browsers do it these days, so that may be a reason.

Give it a throwaway account to work with.

@woodyDevTech
Copy link
Author

I tried with a username and password, i got same respond, if this is what you mean. If the machine does not have firefox would this be a problem?
Thank you for your fast response!

@mikf
Copy link
Owner

mikf commented Dec 11, 2023

The login process might not work when you are rate limited.
Login in a browser and give gallery-dl its Twitter cookies.

If the machine does not have firefox would this be a problem?

I don't think so.

@woodyDevTech
Copy link
Author

Tried this but for chrome:
gallery-dl --cookies-from-browser chrome https://twitter.com/fulgrownbabyman/status/1731450840613875732 --verbose

Response was as follows:

[gallery-dl][debug] Version 1.26.4 - Executable
[gallery-dl][debug] Python 3.8.10 - Windows-10-10.0.17763
[gallery-dl][debug] requests 2.31.0 - urllib3 2.1.0
[gallery-dl][debug] Configuration Files []
[gallery-dl][debug] Starting DownloadJob for 'https://twitter.com/fulgrownbabyman/status/1731450840613875732'
[twitter][debug] Using TwitterTweetExtractor for 'https://twitter.com/fulgrownbabyman/status/1731450840613875732'
[cookies][debug] Extracting cookies from C:\Users\Administrator\AppData\Local\Google\Chrome\User Data\Default\Network\Cookies
[cookies][debug] Falling back to temporary database copy (OperationalError: unable to open database file)
[twitter][warning] cookies: [Errno 13] Permission denied: 'C:\Users\Administrator\AppData\Local\Google\Chrome\User Data\Default\Network\Cookies'
[twitter][info] Requesting guest token
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): api.twitter.com:443
[urllib3.connectionpool][debug] https://api.twitter.com:443 "POST /1.1/guest/activate.json HTTP/1.1" 429 69
[twitter][info] Waiting until 09:55:19 for rate limit reset.

Any other suggestion?

@woodyDevTech
Copy link
Author

by the way it works for firefox:
gallery-dl --cookies-from-browser firefox https://twitter.com/fulgrownbabyman/status/1731450840613875732 --verbose

but not for chrome, so this means we need to have firefox right? And login there? no other work around?

@mikf
Copy link
Owner

mikf commented Dec 12, 2023

[twitter][warning] cookies: [Errno 13] Permission denied: 'C:\Users\Administrator\AppData\Local\Google\Chrome\User Data\Default\Network\Cookies'

See #4195 and #4894 (comment).
Chrome blocks access to its cookie database while it is running.

@mikf mikf closed this as completed Dec 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants