@tushargj I’m experiencing a similar issue, but with a different response error message. I get the “Duration too long, maximum:30000” message even though I am uploading using the suggested async method. The video is 12.6megs and 45s long. Any ideas what I might be doing wrong?
The log below includes the message as well as the failed MediaID: 750564825571426304
[3337:2915720] Twitter Stage1 HTTP Response: 202, responseData: {"media_id":750564825571426304,"media_id_string":"750564825571426304","expires_after_secs":86400}
[3337:2915720] chunk index -> 1, data size -> 5000000 bytes
[3337:2915720] chunk index -> 2, data size -> 5000000 bytes
[3337:2915720] chunk index -> 3, data size -> 2636231 bytes
[3337:2915720] stage one success, mediaID -> 750564825571426304
[3337:2915709] Twitter Stage2 - 1 HTTP Response: 204,
[3337:2915720] Twitter Stage2 - 2 HTTP Response: 204,
[3337:2915715] Twitter Stage2 - final, HTTP Response: 204,
[3337:2915718] Twitter Stage3 HTTP Response: 201, {"media_id":750564825571426304,"media_id_string":"750564825571426304","size":12636231,"expires_after_secs":86400,"video":{"video_type":"video\/mp4"}}
[3337:2915867] Twitter Stage4 HTTP Response: 400, {"errors":[{"code":324,"message":"Duration too long, maximum:30000, actual:45205 (MediaId: snf:750564825571426304)"}]}
Thanks!