Open God-damnit-all opened 3 years ago
It could also be related to when something seems to be broken on Twitter's side of things. Notice how this tweet's media is all blank: https://twitter.com/alcopopstar/status/1288270106032660480
Edit: Disregard that, I have four 0 byte files for that tweet, so I guess that's actually working correctly and isn't related to the above issue. It would be good to refuse to download those files at all though, or delete them after the script sees that they're empty, so perhaps a retry later would yield working files if it's a temporary outage on one of their cloud servers.
I managed to figure out the tweet it was getting hung up on.
https://twitter.com/homosenpais/status/758860339119128576
Apparently this is the issue: https://github.com/psf/requests/issues/4248#issuecomment-510018853
There seem to be proposed fix it, but most of them involve editing the library itself...
I'm occasionally getting this error, and I'm not sure why. Perhaps it's a failed download, and there's no catch and retry logic?