Issue Description:
Sometimes, we get UnknownError
error from Twitter.
Looking at the logs, we can see the unerlying error:
2022-09-10 19:48:48,139 (ERROR) [73][22800] <1810.95MB> TwitterApi - Failed to publish tweet: : Reason : Bad Request
Details : Not valid video (324)
Code : 400
Date : 09/10/2022 19:48:48 +09:00
URL : https://api.twitter.com/1.1/statuses/update.json?status=%E3%83%97%E3%83%A9%E3%82%A4%E3%83%A0%E3%81%84%E3%81%84%E3%81%AD%EF%BD%9E&media_ids=1568551823874871296&tweet_mode=extended
Twitter documentation description : Bad Request - The request was invalid or cannot be otherwise served. An accompanying error message will explain further. In API v1.1, requests without authentication are considered invalid and will yield this response.
2022-09-10 19:48:48,141 (ERROR) [73][22800] <1810.95MB> TwitterApi - Failed to publish tweet
We would like to get a specific error when this issue occurs so we can let our users know what is the problem.
In addition, After reading about Not valid video (324)
, it seems like it has to do with the chunked upload. maybe this issue is solvable?
Can you reproduce it (exact steps to reproduce):
No
Impact for my app:
low (60 users daily)
Do you currently have a workaround?
No
User Logs:
https://drive.google.com/file/d/1Q4OwCr1ilvlgeVuCecQ5-A7SP-cGjlBb/view?usp=sharing
https://drive.google.com/file/d/1Qa8kOcS3UWW3Nr4aNZrtEP-z3LCIWyp7/view?usp=sharing