I am constantly encountering this issue with TON upload dealing with multi-chunks upload where the intial upload works fine gets back a HTTP/200 but all the chunk uploads are getting back a HTTP/400 (bad request) even though i seem to be setting all the headers correctly.
The chunk size is set to 8Mb and the file size is 4Gb.
What is causing this?
here’s a quick trace of the logging i’m seeing:
2015-06-08 03:03:54,127 INFO com.netflix.twitter.api.ton.runnables.ChunksRunnable:130 [TON-001] [run] Uploading chunk to https://ton.twitter.com/1.1/ton/data/ta_partner/757216850/KBZDPDdGXmFwzdW.csv?resumable=true&resumeId=703169
2015-06-08 03:03:54,127 INFO com.netflix.twitter.api.ton.runnables.ChunksRunnable:138 [TON-001] [run] HTTP headers:{X-TON-Expires=Sat, 13 Jun 2015 03:03:54 UTC, Content-Range=bytes 70368744177664-70368752566271/4350085740, X-TON-Content-Type=text/csv, Content-Type=text/csv}
2015-06-08 03:03:54,130 INFO com.netflix.twitter.api.ton.runnables.ChunksRunnable:138 [TON-002] [run] HTTP headers:{X-TON-Expires=Sat, 13 Jun 2015 03:03:54 UTC, Content-Range=bytes 140737488355328-140737496743935/4350085740, X-TON-Content-Type=text/csv, Content-Type=text/csv}
2015-06-08 03:03:54,141 INFO com.netflix.twitter.api.ton.runnables.ChunksRunnable:138 [TON-003] [run] HTTP headers:{X-TON-Expires=Sat, 13 Jun 2015 03:03:54 UTC, Content-Range=bytes 211106232532992-211106240921599/4350085740, X-TON-Content-Type=text/csv, Content-Type=text/csv}
2015-06-08 03:03:54,146 INFO com.netflix.twitter.api.ton.runnables.ChunksRunnable:138 [TON-004] [run] HTTP headers:{X-TON-Expires=Sat, 13 Jun 2015 03:03:54 UTC, Content-Range=bytes 281474976710656-281474985099263/4350085740, X-TON-Content-Type=text/csv, Content-Type=text/csv}
2015-06-08 03:03:54,150 INFO com.netflix.twitter.api.ton.runnables.ChunksRunnable:138 [TON-005] [run] HTTP headers:{X-TON-Expires=Sat, 13 Jun 2015 03:03:54 UTC, Content-Range=bytes 351843720888320-351843729276927/4350085740, X-TON-Content-Type=text/csv, Content-Type=text/csv}
2015-06-08 03:04:43,027 INFO com.netflix.twitter.api.ton.runnables.ChunksRunnable:154 [TON-016] [run] Got response=HttpResponseProxy{HTTP/1.1 400 Bad Request [cache-control: no-cache, content-length: 0, date: Mon, 08 Jun 2015 03:04:42 GMT, server: tsa_b, set-cookie: guest_id=v1%3A143373268289484626; Domain=.twitter.com; Path=/; Expires=Wed, 07-Jun-2017 03:04:43 UTC, strict-transport-security: max-age=631138519, x-connection-hash: 665c5a2d34fa48133af5a31b287c9290, x-rate-limit-limit: 90000, x-rate-limit-remaining: 89998, x-rate-limit-reset: 1433733534, x-response-time: 112, x-tsa-request-body-time: 48442] [Content-Length: 0,Chunked: false]}
2015-06-08 03:04:43,588 INFO com.netflix.twitter.api.ton.runnables.ChunksRunnable:154 [TON-002] [run] Got response=HttpResponseProxy{HTTP/1.1 400 Bad Request [cache-control: no-cache, content-length: 0, date: Mon, 08 Jun 2015 03:04:43 GMT, server: tsa_b, set-cookie: guest_id=v1%3A143373268346751401; Domain=.twitter.com; Path=/; Expires=Wed, 07-Jun-2017 03:04:43 UTC, strict-transport-security: max-age=631138519, x-connection-hash: c15e8ea6b2c8495fc20037c1867e81f8, x-rate-limit-limit: 90000, x-rate-limit-remaining: 89997, x-rate-limit-reset: 1433733534, x-response-time: 118, x-tsa-request-body-time: 49208] [Content-Length: 0,Chunked: false]}
2015-06-08 03:04:45,346 INFO com.netflix.twitter.api.ton.runnables.ChunksRunnable:154 [TON-013] [run] Got response=HttpResponseProxy{HTTP/1.1 400 Bad Request [cache-control: no-cache, content-length: 0, date: Mon, 08 Jun 2015 03:04:45 GMT, server: tsa_b, set-cookie: guest_id=v1%3A143373268523319474; Domain=.twitter.com; Path=/; Expires=Wed, 07-Jun-2017 03:04:45 UTC, strict-transport-security: max-age=631138519, x-connection-hash: d6d3795479cb100d4c3ce536a14446af, x-rate-limit-limit: 90000, x-rate-limit-remaining: 89996, x-rate-limit-reset: 1433733534, x-response-time: 109, x-tsa-request-body-time: 50920] [Content-Length: 0,Chunked: false]}