Hey there I found a behavior difference

Hey there, I found a behavior difference between miniflare (via wrangler latest version) and a deployed worker: when using env.R2_BUCKET.put(key, request.body) you will get an error like "Provided readable stream must have a known length (request/response body or readable half of FixedLengthStream)". 1. It's working when deployed on Cloudflare workers 2. It's a request.body
1 Reply
vvo
vvo16mo ago
GitHub
env.R2_BUCKET.put(key, request.body) fails with Provided readable s...
This code fails in miniflare but works when deployed in a worker: env.R2_BUCKET.put(key, request.body); // request.body is the Request from the worker handler. It fails with Provided readable str...
Want results from more Discord servers?
Add your server