131 error code on code that worked yesterday

restapi
media-upload

#1

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?${
              qs.stringify({
                command: 'INIT',
                media_type: `image/${extension}`,
                total_bytes: response.fileSize,
                shared: true,
                media_category
              })
              }`,
            method: 'POST',
          };
          const initUpload = await fetch(
            requestDataInit.url,
            {
              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.


#2

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?


#3

I confirm that everything is okay. Thank you.