STATUS command on chunked video upload

video

#1

Getting some odd behavior on the status command after a chunked video upload. INIT,APPEND,FINALIZE commands all work great, and I can even post the video to twitter using the update endpoint, but I am concerned about cases where the video hasn’t finished processing, I would like to be able to programmatically determine whether or not it is ready to be posted alongside a tweet. Here is what I am getting back from the API:

GET https://upload.twitter.com/1.1/media/upload.json?command=STATUS&media_id=[MEDIA_ID]

returns

400 Bad Request
{
  "request": "/1.1/media/upload.json",
  "error": "checkVideoProcessingStatus called on a sync upload or an expired request."
 }

As a hacky fallback, will the status/update endpoint allow a tweet to go out with a video that is still processing?


#2

bump


#3

Sorry for the delay. I think it is safe to say that you should re-try the call and only proceed with the tweet with media_id once you’re no longer receiving a 400.


#4

This topic was automatically closed after 24 hours. New replies are no longer allowed.