Worker return 1101

Since 29 September my worker start return 1101 error, worker used to upload files to R2 and looks like:
if (request.body === null) {
return response400(requestContext.request, "Missing request body");
}
await bucket.put(fullPath, request.body);
return response(requestContext.request, null, { status: 201 });
if (request.body === null) {
return response400(requestContext.request, "Missing request body");
}
await bucket.put(fullPath, request.body);
return response(requestContext.request, null, { status: 201 });
On uploading HTTP client use "Transfer-Encoding: chunked" header but worker returns:
TypeError: Provided readable stream must have a known length (request/response body or readable half of FixedLengthStream)
TypeError: Provided readable stream must have a known length (request/response body or readable half of FixedLengthStream)
What interesting that sometimes uploading works and worker return 201 as expected, something like in 10% of uploading requests is success. Worker code is not modified before 29 September, here is example of logs with two tries, first failed, second success:
PUT https://domain.com/foobar?action=single-upload - Exception Thrown @ 10/1/2025, 9:46:59 PM
✘ [ERROR] TypeError: Provided readable stream must have a known length (request/response body or readable half of FixedLengthStream)

PUT https://domain.com/foobar?action=single-upload - Ok @ 10/1/2025, 9:47:01 PM
PUT https://domain.com/foobar?action=single-upload - Exception Thrown @ 10/1/2025, 9:46:59 PM
✘ [ERROR] TypeError: Provided readable stream must have a known length (request/response body or readable half of FixedLengthStream)

PUT https://domain.com/foobar?action=single-upload - Ok @ 10/1/2025, 9:47:01 PM
Any ideas what may be a reason? Thanks.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?