bee icon indicating copy to clipboard operation
bee copied to clipboard

Upload Chucks with Content-Type: application/octet-stream

Open FedeC87p opened this issue 3 years ago • 0 comments

Context

Tested on 1.6.x & 1.7.0

Summary

No Response, Sending request for infinite time, when try to use a Reference uploaded with /Chunks and Content-Type: application/octet-stream

Steps to reproduce

  1. Upload Chucks with Content-Type: application/octet-stream work fine.

2022/08/11 14:49:25.582061 length=300 from=0 to=299 POST /chunks HTTP/1.1\r Host: 192.168.1.103:1624\r swarm-postage-batch-id: 202497d1b29771cf398ca2965bb590e43d25f38c39dea3cb4c65ae093678fbb4\r swarm-deferred-upload: false\r Accept: application/json\r Content-Type: application/octet-stream\r Content-Length: 43\r \r File for upload in integration test Gateway< 2022/08/11 14:49:25.590287 length=252 from=0 to=251 HTTP/1.1 201 Created\r Access-Control-Expose-Headers: Swarm-Tag\r Content-Type: application/json; charset=utf-8\r Date: Thu, 11 Aug 2022 12:49:25 GMT\r Content-Length: 82\r \r {"reference":"280add20af2e4f419abd0852532892ba0d47abc7d3ab90cac4534db7253b70d0"}

  1. Download chuncks work fine

2022/08/11 14:54:46.975159 length=301 from=0 to=300 GET /chunks/280add20af2e4f419abd0852532892ba0d47abc7d3ab90cac4534db7253b70d0 HTTP/1.1\r User-Agent: PostmanRuntime/7.29.2\r Accept: /\r Cache-Control: no-cache\r Postman-Token: bb27fe3b-9fbb-4890-ba7c-d051b8374f47\r Host: 192.168.1.103:1624\r Accept-Encoding: gzip, deflate, br\r Connection: keep-alive\r \r < 2022/08/11 14:54:47.119723 length=225 from=0 to=224 HTTP/1.1 200 OK\r Content-Encoding: gzip\r Content-Type: binary/octet-stream\r Vary: Accept-Encoding\r Date: Thu, 11 Aug 2022 12:54:47 GMT\r Content-Length: 67\r \r ..\b.......r..IUH./R(-..OLQ..S..+IM/J,...S(I-.QpO,I-O...........+...

  1. Now the problem that i have with some API, when i use a Reference genated by Upload Chunks with Content-Type: application/octet-stream my request it hangs indefinitely waiting for a response from the endpoint (Same issue when try to Pin)

curl --location --request GET 'http://192.168.1.103:1633/stewardship/280add20af2e4f419abd0852532892ba0d47abc7d3ab90cac4534db7253b70d0 '

Screenshot 2022-08-14 164955

No Response, Sending request for infinite time.

2022/08/11 15:08:24.647315 length=306 from=0 to=305 GET /stewardship/280add20af2e4f419abd0852532892ba0d47abc7d3ab90cac4534db7253b70d0 HTTP/1.1\r User-Agent: PostmanRuntime/7.29.2\r Accept: /\r Cache-Control: no-cache\r Postman-Token: 40b313d8-0f55-40be-81ff-feb214e463b8\r Host: 192.168.1.103:1624\r Accept-Encoding: gzip, deflate, br\r Connection: keep-alive\r \r

FedeC87p avatar Aug 14 '22 14:08 FedeC87p