Noticed my implementation broke today and looking more closely I noticed that media_id and media_id_string are different.
{ image: { w: 500, h: 500, image_type: 'image/jpeg' }, media_id: 596476242246946800, media_id_string: '596476242246946817', size: 68421 }
Checked the docs and they should be the same:
{ "media_id": 553656900508606464, "media_id_string": "553656900508606464", "size": 998865, "image": { "w": 2234, "h": 1873, "image_type": "image/jpeg" } }
Tested and media_id_string is the correct value.
Linked from "The validation of media ids failed." Error Code 324