Open tilnow opened 3 years ago
Seconding this issue: I regularly get the same error when trying to upload images directly through PostUpdate
. Uploading the exact same image directly via Twitter's website works, so I think it's probably something about the chunked endpoint/perhaps overly conservative chunking.
My workaround for the time being is to use UploadMediaSimple
, which appears to work for my medium-to-large-ish JPEGs (no more than 4MB):
media_id = api.UploadMediaSimple(some_fd)
api.PostUpdate("some tweet", media=media_id)
(As a bonus, doing it in two steps like this gives me the ability to add alt text.)
i think this is related to issue #433 i am using PostUpdate to post (great library by the way) and when I posted an image smaller than 1MB (actually ~690Kb) it worked fine. the media is provided as a file with no extension
when I post an image ~2MB i get: