Linked issue report: https://github.com/cloudflare/workers-sdk/issues/5360
Using wrangler.getBindingsProxy
to read R2 bucket data, the readable stream will be stuck on big sizes (1MB+) if used with concurrency of 2+ promises. The second stream will never end and Node.js process is stuck. This issue does not happens in production.
corepack enable
pnpm install
pkill -9 node
when server or script is stuck.simple.mjs
script using node ./src/simple.mjs
server.mjs
with node ./src/server.mjs
assets/cat1.jpg
and assets/cat2.jpg
without reloading page (to avoid early stuck)pkill -9 node
might be necessary!