@JBabichJapan @hector_borras @majoritasdev reviving this since I’m having new issues.
I can successfully upload files via the single chunk upload API, however when issuing multi-chunk requests, I am getting 400 error responses AFTER initialization when trying to upload the first chunk.
Heres an example of my request:
PUT /1.1/ton/bucket/ta_partner/340083909/nHbzAQ6zrmIp9FY?resumable=true&resumeId=317889 HTTP/1.1
Expect: 100-Continue
User-Agent: GuzzleHttp/6.2.0 curl/7.35.0 PHP/7.0.8-4+deb.sury.org~trusty+1
Host: ton.twitter.com
Content-Type: text/comma-separated-values
Content-Range: bytes 0-1048575/32500000
oauth_body_hash: YmZiYzRiYTRjYTdlMmFhODEyMDFmMjhjNzkyZDMwZmRkZTQyMTgxZg==
Authorization: OAuth oauth_consumer_key=“X”, oauth_nonce=“cbc3c62f4826a1fa5257bc243f9953b32056a9c0”, oauth_signature=“ksSBxG3PrOXGnxOgOjyLIeG7mzY%3D”, oauth_signature_method=“HMAC-SHA1”, oauth_timestamp=“1468873554”, oauth_token=“X”, oauth_version="1.0"
Content-Length: 1048576
< HTTP/1.1 100 Continue
- We are completely uploaded and fine
< HTTP/1.1 400 Bad Request
I have compared my headers to the values of the ton_upload ruby script and they are an exact match…
(I also include the oauth_body_hash as mentioned above)
Uploading file in multiple chunks…
Uploading chunk 1 (0-1048575/32500000)…
{“Content-Type”=>“text/comma-separated-values”, “Content-Length”=>1048576, “Content-Range”=>“bytes 0-1048575/32500000”}
Any ideas here?