The POST /videos endpoint has been returning 500 errors recently.
Example video link: http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_2mb.mp4
We use the chunked upload process, with media_category set to ‘amplify_video’.
All the APPEND commands are successful with code 204, and here is the response from a FINALIZE command:
status_code: 200, data: {u’media_id_string’: u’702535744728895488’, u’media_id’: 702535744728895488, u’processing_info’: {u’check_after_secs’: 5, u’state’: u’pending’}, u’expires_after_secs’: 15552000, u’size’: 2107842}
We then check the with the STATUS command:
{u’media_id_string’: u’702535744728895488’, u’media_id’: 702535744728895488, u’processing_info’: {u’state’: u’succeeded’, u’progress_percent’: 100}, u’size’: 2107842}
Then POST /videos fails with:
{u’errors’: [{u’message’: u’Internal Error’, u’code’: u’INTERNAL_ERROR’}], u’request’: {u’params’: {}}}
Using twurl instead yields the same:
twurl -X POST -H ads-api.twitter.com “/0/accounts/4no6av/videos?video_media_id=702535744728895488&title=test2&description=2” | jsonpretty
{
“errors”: [
{
“code”: “INTERNAL_ERROR”,
“message”: “Internal Error”
}
],
“request”: {
“params”: {}
}
}