Skip to main content
All CollectionsSocial MediaTroubleshooting
What to do if you get ‘Error’ messages when posting to X/Twitter. (X/Twitter bugs)
What to do if you get ‘Error’ messages when posting to X/Twitter. (X/Twitter bugs)
Team Simplified avatar
Written by Team Simplified
Updated over 2 weeks ago

Sometimes mistakes can happen during the publication process, and these errors may not necessarily originate from our platform. To help you identify the issue and follow our recommendations, we have compiled a collection of the most common X/Twitter errors.

*As of 2023 Twitter was rebranded as X

1

X error: This code is used when requests are being denied due to update limits (https://support.twitter.com/articles/15364). message – Tweet needs to be a bit shorter. code – 186

Recommendation:

It happens if the text of your tweet is longer than 280 characters and this is not allowed by X. This should not be the case as we do not allow users to save tweets that are longer than 280 characters. However, if you encounter such an error, check the number of characters – maximum 280.

2

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). message – User is over daily status update limit. code – 185

Recommendation:

The tweet cannot be posted as the user is no longer authorized to publish – https://support.twitter.com/articles/15364 If you reach the limit, you will be informed which limit you have reached. For time limits (such as direct messages, tweets, account email changes, and API request limits), you can try again after the timeout period expires. The tweet limit of 2,400 daily updates is further broken down into half-hourly intervals. If you reach your account / tweet update limit, please try again in a few hours after the limit has expired.

3

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). message – Status is a duplicate. code – 187

Recommendation:

On X, you can find information: “Each time you try to post a tweet, the text is compared to the user’s last tweet. Any attempt to duplicate will be blocked, resulting in a 403 error. Therefore, the user cannot send the same status twice in a row. ” Don’t try to post the same tweet / content several times one by one.

4

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. In API v1.1, a request without authentication is considered invalid and you will get this response. message – Image dimensions must be> = 4 × 4 and <= 8192 × 8192 code – 324

Recommendation:

This is because of the wrong dimensions of the image – users often try to transfer files with too high resolution or too low. The image must be 4 × 4 px to 8192 × 8192 px. Check the uploaded image and replace it with an image with the correct dimensions.

5

Twitter error: This code is used when requests are being denied due to update limits (https://support.twitter.com/articles/15364). 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:

This happens when Twitter’s automated systems considered the posted content spam / malware and therefore blocked the Twitter account. Log in to Twitter and unlock your account or contact Twitter – https://help.twitter.com/en/managing-your-account/locked-and-limited-accounts

6

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:

It happens when an internal error occurs on Twitter. We cannot do much. Please try again later.

7

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). message – Error creating status. code – 189

Recommendation:

This error can appear if non-animated GIFs are included directly as a thumbnail, or if they are in a URL attached to the tweet. Replace it with another image format or upload an animated one.

8

file is invalid

Recommendation:

The user uploaded a video / image file that is not supported.

9

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

Recommendation:

Your video is too long. Twitter allows for a video that is a maximum of 140 seconds (2 minutes and 20 seconds) long. Replace the file with a shorter one.

10

Twitter error: This is the status code will be returned during version 1.0 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 is because when posting on Twitter you can add:

  • up to 4 photos or

  • 1 animated GIF or

  • 1 video

You cannot use a combination of these three options. Otherwise, it will result in a publication error. This is a limitation of the Twitter API.

11

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). message – Missing required parameter: status. code – 170

Recommendation:

It happens when you are trying to publish a “blank” post. Add some content to your tweet and try again.


12

409: Too many requests

X, formerly known as Twitter, has revised the posting limits for free accounts. Users can now post a total of 500 times per month, which averages to 17 posts per day without any media. If your posts include media, the limit is reduced to just 2 posts per day. You can read the full announcement here.

Did this answer your question?