cloudflare / cloudflare/workers-sdk

🐛 BUG: shutting down the dev server logs errors in console

Open
#6,562 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.5k
Forks
1.5k
Avg merge
3d 8h
Merged PRs (30d)
187

Description

### Which Cloudflare product(s) does this pertain to?

Wrangler

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

3.72.2

### What version of Node are you using?

v20.14.0

### What operating system and version are you using?

MacOS

### Describe the Bug

### Observed behavior
When runniing wrangler dev, and then shutting it down (either with the `x` hotkey, or by hitting `ctrl-c`, I'll get this error in my console
image

### Expected behavior
There shouldn't be any errors.

### Steps to reproduce

As mentioned above. It looks like a race condition with how we clean up the generated worker bundle.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with Wrangler 3.72.2 using `wrangler dev`, then shut the server down with `x` and Ctrl-C while tracing cleanup of the generated worker bundle. Done means both shutdown paths complete without logging errors in the console.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.