I uploaded a video with chunked upload. It went through Init, Append and Finalize steps but finally failed with code 0, message: InvalidMedia.
My video information is described below. (using QuickTime)

Format: H.264, 1280 x 720, AAC, 48000 Hz, Stereo (L R)
FPS: 30
Size: 35.3MB
Data rate: 10.11 Megabit/s

Can you point out what is wrong with my video? Thank you.
スクリーンショット 2021-04-13 12.12.12

Did you issue a STATUS after FINALIZE that came back with a "succeeded"? Sometimes it takes a short while for the media to become usable in a tweet. GET media/upload (STATUS) | Docs | Twitter Developer Platform

after FINALIZE, I got STATUS of “pending” or “in_progress”.
I called a GET request with compact of that STATUS and MEDIA_ID_STRING, and finally got error with error code: 0 and error message: InvalidMedia

Edit: I uploaded several times that video, one of returned media_id_string is: 1380724737542787074
Can you check that video? Thank you.

I’m not twitter and i’ve no way of checking your video unfortunately - but STATUS should return:

  "processing_info":{
    "state":"succeeded",
    "progress_percent":100,
  }

not “pending” or “in_progress”. You’ll have to give it a few seconds and try STATUS again until it does, and then post the tweet.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.