You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.
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:
File "/home/yak/.local/lib/python3.6/site-packages/discord/client.py", line 343, in _run_event
await coro(*args, **kwargs)
File "csvofyaks.py", line 315, in on_message
status = twitterapi2.PostUpdate(txt,media=n)
File "/home/yak/.local/lib/python3.6/site-packages/twitter/api.py", line 1164, in PostUpdate
media, media_additional_owners, media_category=media_category
File "/home/yak/.local/lib/python3.6/site-packages/twitter/api.py", line 1422, in UploadMediaChunked
media_category=media_category)
File "/home/yak/.local/lib/python3.6/site-packages/twitter/api.py", line 1274, in _UploadMediaChunkedInit
raise TwitterError({'message': 'Could not process media file'})
twitter.error.TwitterError: {'message': 'Could not process media file'}```
The text was updated successfully, but these errors were encountered:
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):
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:
The text was updated successfully, but these errors were encountered: