Hi Andy,
yes, today this small image works OK, but a bigger one still fails: https://prnt.sc/iup73t
We use Java to call Twitter API, but I’ve used https://github.com/twitterdev/large-video-upload-python as you suggested and got the following result:
INIT
Media ID: 976751140795797504
APPEND
2866113 of 2866113 bytes uploaded
Upload chunks complete.
FINALIZE
{u’media_id’: 976751140795797504, u’image’: {u’image_type’: u’image/png’, u’h’: 1283, u’w’: 1925}, u’media_id_string’: u’976751140795797504’, u’expires_after_secs’: 86400, u’media_key’: u’3_976751140795797504’, u’size’: 2866113}
{u’errors’: [{u’message’: u’Internal error’, u’code’: 131}]}
Please note that I use the following parameters for INIT command:
request_data = {
‘command’: ‘INIT’,
‘media_type’: ‘image/png’,
‘total_bytes’: self.total_bytes,
‘media_category’: ‘tweet_image’
}