cloudflare / workers-sdk

⛅️ Home to Wrangler, the CLI for Cloudflare Workers®
https://developers.cloudflare.com/workers/
Apache License 2.0
2.68k stars 702 forks source link

🐛 BUG: dev server crashed #7125

Open ImSingee opened 1 day ago

ImSingee commented 1 day ago

Which Cloudflare product(s) does this pertain to?

Wrangler

What version(s) of the tool(s) are you using?

3.83.0 [Wrangler]

What version of Node are you using?

22.10.0

What operating system and version are you using?

macOS 15.0

Describe the Bug

Observed behavior

Some requests will cause the dev server to crash without any logs and can't be auto-recovered.

Expected behavior

Serve request successfully

Steps to reproduce

  1. pnpm create cloudflare demo, choose "Hello World example" and "Hello World Worker"
  2. pnpm dev to start it (on port 8787)
  3. Open bun repl in another shell, run await fetch('http://localhost:8787')
  4. The wrangler dev server crashed (though no logs printed), and curl http://localhost:8787 will also stop working

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

No response

ImSingee commented 1 day ago

Nearly the same as https://github.com/cloudflare/workers-sdk/issues/6176 https://github.com/oven-sh/bun/issues/12730

But this is definitely wrangler's bug, not bun's -- request shouldn't cause server to crash in any means