Create a fresh wrangler project with wrangler init
Run pnpm install
Set http_proxy and https_proxy environment variables
Run wrangler dev
Error when turning off local mode with l key
Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
$ pnpm dev
> dawn-disk-c7f8@0.0.0 dev .../dawn-disk-c7f8
> wrangler dev
Proxy environment variables detected. We'll use your proxy for fetch requests.
โ ๏ธ wrangler 3.51.2
-------------------
โ Starting local server...
[wrangler:inf] Ready on http://localhost:8787
โ Shutting down local server...
โ [ERROR] Failed to unregister worker TypeError: fetch failed
at fetch
(.../dawn-disk-c7f8/node_modules/.pnpm/wrangler@3.51.2_@cloudflare+workers-types@4.20240419.0/node_modules/wrangler/wrangler-dist/cli.js:17033:19)
at async unregisterWorker
(.../dawn-disk-c7f8/node_modules/.pnpm/wrangler@3.51.2_@cloudflare+workers-types@4.20240419.0/node_modules/wrangler/wrangler-dist/cli.js:127770:5)
at async Promise.allSettled (index 0) {
cause: SocketError: other side closed
at Socket.onSocketEnd
(.../dawn-disk-c7f8/node_modules/.pnpm/wrangler@3.51.2_@cloudflare+workers-types@4.20240419.0/node_modules/wrangler/wrangler-dist/cli.js:7263:27)
at Socket.emit (node:events:529:35)
at Socket.emit (node:domain:489:12)
at endReadableNT (node:internal/streams/readable:1400:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
code: 'UND_ERR_SOCKET',
socket: {
localAddress: '127.0.0.1',
localPort: 53033,
remoteAddress: '127.0.0.1',
remotePort: 8898,
remoteFamily: 'IPv4',
timeout: undefined,
bytesWritten: 1265,
bytesRead: 1677
}
}
}
Total Upload: 5.45 KiB / gzip: 1.76 KiB
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ [b open a browser, [d] open Devtools, [l] turn on local mode,[c] clear console, [x] to exit โ
โ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Which Cloudflare product(s) does this pertain to?
Wrangler core
What version(s) of the tool(s) are you using?
Wrangler 3.51.2
What version of Node are you using?
v18.19.0
What operating system and version are you using?
macOS Sonoma 14.4.1
Describe the Bug
Steps to reproduce
wrangler init
pnpm install
http_proxy
andhttps_proxy
environment variableswrangler dev
l
keyPlease provide a link to a minimal reproduction
No response
Please provide any relevant error logs