Consistent 503 error at chunked media upload endpoint




Can someone please explain why the ‘APPEND’ part of the POST request to /media/upload is consistently returning this error? Tried to figure it out all day. Thanks!

"code" : 130,
"message" : "Over capacity"

Here’s the request.

{ request: 
   { debugId: 11,
     uri: '',
     method: 'POST',
      { host: '',
        accept: 'application/json',
        Authorization: 'OAuth oauth_consumer_key="XXXXXXXXX",oauth_nonce="ba22cb5724824fa08f7c85cf2bb43bdf",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1441172754",oauth_token="XXXXXXX",oauth_version="1.0",oauth_signature="FSs4HgU5ONzpa4c292DeA5JNwI%3D"',
        'content-type': 'multipart/form-data; boundary=--------------------------793362620119902776112770',
        'content-length': 510 } } }
{ response: 
   { debugId: 11,
      { 'content-length': '51',
        'content-type': 'application/json;charset=utf-8',
        date: 'Wed, 02 Sep 2015 05:45:54 GMT',
        server: 'tsa_a',
        'set-cookie': [Object],
        'strict-transport-security': 'max-age=631138519',
        'x-connection-hash': '96710562cff72684dbdce9f41f1726c4',
        'x-response-time': '14',
        'x-tsa-request-body-time': '132' },
     statusCode: 503,
     body: { errors: [Object] } } }


Hey Ryan, sorry to hear you’re having an issue. The current error messaging isn’t too helpful; we’re working on that. Could you confirm that you are including the media_id that the INIT call returned and that the chunks you are uploading for each append call is <=5MB?


Yep, the media_id from INIT is getting through to each call and each chunk is < 5mb.

Edit: I solved the problem by adjusting the chunk request callback in Node.


I’m experiencing this same issue. I’ve written a .NET class library for the Twitter API and am struggling with the append portion of the video upload endpoint. I am sending a max size of 512kb chunks and have also confirmed that the media_id is being included. I’m still investigating, but running out of ideas to try.