Hello, i was try Upload Media to Twitter with Chunked String…

But, when i try to finalize that media response is

{
  media_id: 1589931838377631700,
  media_id_string: '1589931838377631744',
  media_key: '7_1589931838377631744',
  size: 3942899,
  expires_after_secs: 86400,
  processing_info: { state: 'pending', check_after_secs: 1 }
}

And, after 10 second, i check again with API status and response is

{
  media_id: 1589931838377631700,
  media_id_string: '1589931838377631744',
  media_key: '7_1589931838377631744',
  size: 3942899,
  processing_info: {
    state: 'failed',
    progress_percent: 100,
    error: { code: 1, name: 'InvalidMedia', message: 'file is invalid' }
  }
}

I dont know why is failed…
Please Check if i was miss somethink, or you can try upload with same file

URL Media: https://d24nkxx9cy74ww.cloudfront.net/self-content/62b14fc23c362a7a6b2c1342/MEDIA-O47PH5D7UL.mp4

Does it work if you try to upload it with just the web interface? If not, the video may be of incorrect format: Media Best Practices | Docs | Twitter Developer Platform

To test if it’s not the implementation, does this code work instead? GitHub - twitterdev/large-video-upload-python: Sample Python code for uploading video up to 140 seconds and/or up to 512Mb.

I try to Upload on mobile twitter (web) and get this response…

Does twitter not give a clue about what is wrong with the uploaded video?