Twitter API throws the following error when posing tweet with video. Working fine with photos.
{“errors”:[{“code”:324,“message”:“Not valid video”}]}

Media id returned from media/upload INIT command(I’m using media_id_string):
1536290883561193472

API request:
1.1/statuses/update.json?status=Lassi&media_ids=1536290883561193472

Error:
{“errors”:[{“code”:324,“message”:“Not valid video”}]}

List of API calls:

  1. media/upload: INIT media_id_string in response: 1536290883561193472
  2. media/upload APPEND
  3. meadia/upload FINALIZE
  4. /1.1/statuses/update.json?status=Lassi&media_ids=1536290883561193472

Its only happening recently before its was working fine

What I tried:
Tried to use videos that worked before
Used videos which were successfully uploaded from twitter UI

nothing works, do anyone have idea how to resolve?