Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 BUG: no_proxy not respected #7736

Open
endereyewxy opened this issue Jan 11, 2025 · 0 comments
Open

🐛 BUG: no_proxy not respected #7736

endereyewxy opened this issue Jan 11, 2025 · 0 comments
Labels
bug Something that isn't working

Comments

@endereyewxy
Copy link

Which Cloudflare product(s) does this pertain to?

Wrangler

What versions are you using?

3.80.1

What operating system and version are you using?

NixOS 24.11

Please provide a link to a minimal reproduction

No response

Describe the Bug

Wrangler won't respect the no_proxy environment variable.

My proxy could not handle the requests send by wrangler dev. When I try to close the dev server (pressing x in the terminal), a Failed to unregister worker error pop out. See the logs for more details.

I've configured my no_proxy to localhost,127.0.0.1, but wrangler still sends the request through proxy. I'm not sure if this is intended or a bug.

Please provide any relevant error logs

⎔ Starting local server...
[wrangler:inf] GET / 200 OK (7ms)
⎔ Shutting down local server...
✘ [ERROR] Failed to unregister worker TypeError: fetch failed

      at fetch
  (/nix/store/f02ksxjgilbzz91jq83kd72k6ni5v4sc-wrangler-3.80.1/lib/packages/wrangler/wrangler-dist/cli.js:17227:19)
      at async unregisterWorker
  (/nix/store/f02ksxjgilbzz91jq83kd72k6ni5v4sc-wrangler-3.80.1/lib/packages/wrangler/wrangler-dist/cli.js:173185:5)
      at async Promise.allSettled (index 0)
      at async
  /nix/store/f02ksxjgilbzz91jq83kd72k6ni5v4sc-wrangler-3.80.1/lib/packages/wrangler/wrangler-dist/cli.js:173271:54
      at async Object.devHandler [as handler]
  (/nix/store/f02ksxjgilbzz91jq83kd72k6ni5v4sc-wrangler-3.80.1/lib/packages/wrangler/wrangler-dist/cli.js:214205:9)
  {
    cause: SocketError: other side closed
        at Socket.onSocketEnd
  (/nix/store/f02ksxjgilbzz91jq83kd72k6ni5v4sc-wrangler-3.80.1/lib/packages/wrangler/wrangler-dist/cli.js:7457:27)
        at Socket.emit (node:events:530:35)
        at Socket.emit (node:domain:489:12)
        at endReadableNT (node:internal/streams/readable:1698:12)
        at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
      code: 'UND_ERR_SOCKET',
      socket: {
        localAddress: '127.0.0.1',
        localPort: 54842,
        remoteAddress: '127.0.0.1',
        remotePort: 7897,
        remoteFamily: 'IPv4',
        timeout: undefined,
        bytesWritten: 24432,
        bytesRead: 625888
      }
    }
  }
@endereyewxy endereyewxy added the bug Something that isn't working label Jan 11, 2025
@github-project-automation github-project-automation bot moved this to Untriaged in workers-sdk Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that isn't working
Projects
Status: Untriaged
Development

No branches or pull requests

1 participant