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

Twitter ':orig' not available #237

Closed
Suika opened this issue Apr 29, 2019 · 2 comments
Closed

Twitter ':orig' not available #237

Suika opened this issue Apr 29, 2019 · 2 comments

Comments

@Suika
Copy link

Suika commented Apr 29, 2019

Some files on twitter don't respond to :orig call. And cause a timeout/Bad Gateway.
Workaround would be if :orig times out, use :large

[downloader.http][warning] HTTPSConnectionPool(host='pbs.twimg.com', port=443): Read timed out. (read timeout=30) (1/5)
[downloader.http][warning] HTTPSConnectionPool(host='pbs.twimg.com', port=443): Read timed out. (read timeout=30) (2/5)
[downloader.http][warning] 502 Server Error: Bad Gateway for url: https://pbs.twimg.com/media/DtvPhmFUwAAPU52.jpg:orig (3/5)
[downloader.http][warning] HTTPSConnectionPool(host='pbs.twimg.com', port=443): Read timed out. (read timeout=30) (4/5)
mikf added a commit that referenced this issue Apr 30, 2019
@mikf
Copy link
Owner

mikf commented Apr 30, 2019

Probably just a temporary issue on Twitter's side, since that particular image URL (with :orig) seems to work again.

I've added fallback URLs for :large, :medium, and :small image versions in case something like that happens again, but it's still going to (re)try each URL 5 times and wait for up to 30 seconds by default. You can use -R, --retries and --http-timeout (or their respective config file options) if you don't want to wait as long.

@Suika
Copy link
Author

Suika commented Apr 30, 2019

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants