Linked issue report: cloudflare/workers-sdk#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.
- Clone this repo
- Enable corepack
corepack enable
- Install dependencies with
pnpm install
- Tip: If you need to use
pkill -9 node
when server or script is stuck.
- Run
simple.mjs
script usingnode ./src/simple.mjs
- Run
server.mjs
withnode ./src/server.mjs
- Open http://localhost:3030/
- Upload two big images
assets/cat1.jpg
andassets/cat2.jpg
without reloading page (to avoid early stuck) - Reload page it will be stuck
- Tip: If you need to restart the server, a
pkill -9 node
might be necessary!