131 error code on code that worked yesterday



I’m using new twitter media API. And it’s work yesterday, but now I have error response on INIT request.
response is

{"errors":[{"message":"Internal error","code":131}]}

api method is https://dev.twitter.com/rest/reference/post/media/upload-init
my JS code (if it helps).

const media_category = extension === 'gif' ? 'dm_gif' : 'dm_image';
          const requestDataInit = {
            url: `https://upload.twitter.com/1.1/media/upload.json?${
                command: 'INIT',
                media_type: `image/${extension}`,
                total_bytes: response.fileSize,
                shared: true,
            method: 'POST',
          const initUpload = await fetch(
              method: requestDataInit.method,
              headers: oauth.toHeader(oauth.authorize(requestDataInit, {
                public: this.props.auth.oauthToken,
                secret: this.props.auth.oauthTokenSecret,
            }).then(res => res.text());

hope that is temporary.


There was a short outage earlier - apologies for the inconvenience - things should have returned to normal operation at this time. Are you able to retry the code and see whether this was connected to that temporary situation?


I confirm that everything is okay. Thank you.