Iâm also experiencing this problem
However, my files are all well within the maximum size limits (3MB), even if I sum the sizes of all images combined they total < 3MB.
I have been able to upload two different animated gifs without issue, but combining them to one message fails. However, uploading multiple JPGs / PNG / non-animated gifs seemed okay.
Additionally, if I post > 4 images I get an error too.
So, it seems that you get the error if
- animated gifs when combined in one message
- post more than the allowed 4 photos
- exceed the maximum file size (not sure if thats per file or total upload size)
My full error isâŠ
Exception: 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 - The validation of media ids failed.
code - 324