Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

problem posting image > ~1Mb using postupdate #688

Open
@tilnow

Description

@tilnow

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

image0_smaller

when I post an image ~2MB
image0
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'}```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions