Media parameter is invalid with error code 44


Hi, We are getting error response from the rest api endpoint : statuses/update.json as {“errors”:[{“code”:44,“message”:“media parameter is invalid.”}]} often while updating status with image by using media id which we got it from the endpoint media/upload.json . Kindly look into this. Example response we got it from media/upload.json is {“media_id”:720597730578407425,“media_id_string”:“720597730578407425”,“size”:2854274,“expires_after_secs”:86400,“image”:{“image_type”:“image/jpeg”,“w”:1400,“h”:10000}}


Have you tried comparing to twurl?

command looks like this:

twurl -H “/1.1/media/upload.json?command=STATUS&media_id=723184613183643652” --trace (trace is optional, but I find it useful).

I should add, I’m currently dealing with the same issue.