Here are the most common errors when posting to Twitter, and recommendations for how to fix them.
1. Duplicate tweet
- Error: 403 - Status is a duplicate. Code: 187
- Reason: You are trying to post the same tweet multiple times in a row.
- Solution: Do not post the same tweet in a row - Twitter blocks such attempts.
2. Incorrect image dimensions
- Error: 400 - Image dimensions must be >= 4x4 and <= 8192x8192. Code: 324
- Reason: The image you uploaded is too large or too small.
- Solution: Make sure the image dimensions are within the acceptable range - from 4x4 to 8192x8192 pixels.
3. Tweet is too long
- Error: Tweet needs to be a bit shorter. Code: 186
- Reason: The number of characters exceeds the 280 character limit.
- Solution: Shorten the tweet to 280 characters or less.
4. Problem with non-animated GIF
- Error: 403 - Error creating status. Code: 189
- Reason: The tweet contains a non-animated GIF.
- Solution: Replace the file with an animated GIF or use a different format (such as JPG or PNG).
5. Exceeded post limit
- Error: 403 - User is over daily status update limit. Code: 185
- Reason: You have reached the maximum number of tweets for the day.
- Solution: Wait a few hours and try again. Twitter allows up to 2,400 tweets per day, broken down into intervals.
6. Video is too long
- Error: Duration exceeds max limit of 2 minutes 20 seconds
- Reason: The uploaded video exceeds the maximum length.
- Solution: Trim the video to 140 seconds or less.
7. Account is temporarily locked
- Error: Account is temporarily locked. Code: 326
- Reason: The account activity was detected as spam or suspicious.
- Solution: Log in to twitter.com to unblock your account or contact Twitter support.
8. Empty tweet
- Error: 403 - Missing required parameter: status. Code: 170
- Reason: There is no content in the tweet.
- Solution: Add text, emoji, or other content before posting.
9. Twitter Internal Error
- Error: 500 - Internal error. Code: 131
- Reason: There was a problem on Twitter’s side.
- Solution: Please try again later.
10. Unsupported File
- Error: File is invalid
- Reason: The file you uploaded is not a supported format.
- Solution: Make sure you are using supported image and video formats as recommended by Twitter.
11. Invalid Media Combination
- Error: Tweet with media must have exactly 1 GIF or video or up to 4 photos. Code: 324
- Reason: Attempted to add multiple incompatible media types.
- Solution: You can attach up to 4 photos, or 1 animated GIF, or 1 video in a single tweet.
You cannot combine different file types.