Open davuses opened 1 year ago
I got the same problem.
โฐโ npm run dev
> dev
> wrangler dev src/index.ts
Proxy environment variables detected. We'll use your proxy for fetch requests.
โ
๏ธ wrangler 3.13.1
-------------------
Your worker has access to the following bindings:
- D1 Databases:
- DB: test (************************)
โ Starting local server...
[mf:inf] Ready on http://0.0.0.0:8787
[mf:inf] - http://127.0.0.1:8787
โ Shutting down local server...
โ [ERROR] Failed to unregister worker TypeError: fetch failed
at fetch
(/home/uniform64/Documents/code/test-hono/node_modules/wrangler/wrangler-dist/cli.js:16838:17)
at async unregisterWorker
(/home/uniform64/Documents/code/test-hono/node_modules/wrangler/wrangler-dist/cli.js:126908:5)
at async Promise.allSettled (index 0) {
cause: SocketError: other side closed
at Socket.onSocketEnd
(/home/uniform64/Documents/code/test-hono/node_modules/wrangler/wrangler-dist/cli.js:8506:27)
at Socket.emit (node:events:525:35)
at endReadableNT (node:internal/streams/readable:1359:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
{
code: 'UND_ERR_SOCKET',
socket: {
localAddress: '127.0.0.1',
localPort: 51958,
remoteAddress: '127.0.0.1',
remotePort: 7890,
remoteFamily: 'IPv4',
timeout: undefined,
bytesWritten: 5103,
bytesRead: 10126
}
}
}
โฌฃ Listening at http://0.0.0.0:8787
- http://127.0.0.1:8787
Total Upload: 46.78 KiB / gzip: 11.51 KiB
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ [b open a browser[d] open Devtools[l turn on local mode[c clear console[x] to exit โ
โ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Exactly the same error as @uniform641.
Steps to reproduce
pnpm install
http_proxy
and https_proxy
environment variableswrangler dev
l
keyLogs
$ 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?
Workers Runtime, Wrangler core
What version(s) of the tool(s) are you using?
wrangler 3.3.0
What version of Node are you using?
v18.15.0
What operating system are you using?
WSL
Describe the Bug
When I try to run
wrangler dev
under WSL with env variableshttp_proxy
being set, errorUND_ERR_SOCKET
occurs. After I remove the env variable:http_proxy=""
, the error doesn't occur.Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs