Twitter publishing errors
Updated yesterday

Below you'll find most frequent publishing errors along with a recommendation on what to do if they occur.

1

403:The request is understood, but it has been refused. An accompanying error message will explain why. This code is used when requests are being denied due to update limits (https://support.twitter.com/articles/15364-about-twitter-limits-update-api-dm-and-following). message - Status is a duplicate. code - 187

Recommendation

Twitter says: "For each tweet attempt, the text is compared with user’s recent tweets. Any attempt that would result in duplication will be blocked, resulting in a 403 error. Therefore, a user cannot submit the same status twice in a row." Don't try to publish the same tweet/content multiple times one after another.

2

400:The request was invalid. An accompanying error message will explain why. This is the status code will be returned during version 1.0 rate limiting(https://dev.twitter.com/pages/rate-limiting). In API v1.1, a request without authentication is considered invalid and you will get this response. message - Image dimensions must be >= 4x4 and <= 8192x8192 code - 324

Recommendation

This is due to the wrong image dimensions - users either try to upload too big image files (width or height exceeds 8192px), or too little "one pixel" images (1x1px). The image must be between 4x4px and 8192x8192px. Check the image you've uploaded and replace it with an image which has correct dimensions.

3

Twitter error: This code is used when requests are being denied due to update limits (https://support.twitter.com/articles/15364-about-twitter-limits-update-api-dm-and-following). message - Tweet needs to be a bit shorter. code - 186

Recommendation

This happens when the text of the tweet is more than 280 characters long. This is not allowed by Twitter. With the recent update of Agorapulse Manager (v6 onwards), this should not happen anymore, because we don't allow users to save a tweet which has more than 280 characters, but it can sometimes happen. Check the number of characters - must be max 280.

4

403:The request is understood, but it has been refused. An accompanying error message will explain why. This code is used when requests are being denied due to update limits (https://support.twitter.com/articles/15364-about-twitter-limits-update-api-dm-and-following). message - Error creating status. code - 189

Recommendation

It can happen if there are non-animated GIFs attached either directly as thumbnail, or if they are in the URL link attached to the tweet. Replace the non-animated GIFs with another image format or upload animated GIFs.

5

403:The request is understood, but it has been refused. An accompanying error message will explain why. This code is used when requests are being denied due to update limits (https://support.twitter.com/articles/15364-about-twitter-limits-update-api-dm-and-following). message - User is over daily status update limit. code - 185

Recommendation

When a tweet cannot be posted due to the user having no allowance remaining to post -- https://support.twitter.com/ar... If you do reach a limit, we'll let you know with an error message telling you which limit you've hit. For limits that are time-based (like the Direct Messages, Tweets, changes to account email, and API request limits), you'll be able to try again after the time limit has elapsed. The Tweet limit of 2,400 updates per day is further broken down into semi-hourly intervals. If you hit your account update/Tweet limit, please try again in a few hours after the limit period has elapsed.

6

Duration X.minutes+XX.seconds+XXX.milliseconds exceeds max duration of 2.minutes+20.seconds

Recommendation

This happens when you upload a video file which is too long. Maximum length of video that can be uploaded to Twitter is 140 seconds (2 minutes and 20 seconds). Replace the video file with shorter one.

7

Twitter error: This code is used when requests are being denied due to update limits (https://support.twitter.com/articles/15364-about-twitter-limits-update-api-dm-and-following). message - To protect our users from spam and other malicious activity, this account is temporarily locked. Please log in to https://twitter.com to unlock your account. code - 326

Recommendation

Twitter automated systems considered the content published as spam/malicious, therefore blocked the given Twitter account. Login to Twitter and unlock the account, or contact Twitter -- https://help.twitter.com/en/ma...

8

403:The request is understood, but it has been refused. An accompanying error message will explain why. This code is used when requests are being denied due to update limits (https://support.twitter.com/articles/15364-about-twitter-limits-update-api-dm-and-following). message - Missing required parameter: status. code - 170

Recommendation

This can happen when there is nothing (no text, no emoji) in the Message field. In other words, this happens when user tries to publish an "empty" tweet. Put some content (text, emoji) into the message field, so that tweet is not empty.

9

500:Something is broken. Please post to the group (https://dev.twitter.com/docs/support) so the Twitter team can investigate. message - Internal error code - 131

Recommendation

An unknown internal error occurred on Twitter's side (no API is flawless). Try again later.

10

file is invalid

Recommendation

User has uploaded video/image file that is not supported. Check this article here and upload only supported image/video formats.

11

Twitter error: This is the status code will be returned during version 1.0 rate limiting(https://dev.twitter.com/pages/rate-limiting). In API v1.1, a request without authentication is considered invalid and you will get this response. message - Tweet with media must have exactly 1 gif or video or up to 4 photos. code - 324

Recommendation

This has happened because when publishing on Twitter, you are allowed to attach:

  • up to 4 photos or

  • 1 animated GIF or

  • 1 video in a Tweet

It can not be a combination of those three, otherwise it'll result in publishing error. This is the Twitter API limitation.

Did this answer your question?