question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

🐛 BUG: fetching bound registered workers in local mode fails with timeout

See original GitHub issue

What version of Wrangler are you using?

2.1.6

What operating system are you using?

M1 Pro macOS 12.6

Describe the Bug

When running wrangler pages dev, after some delay (presumably the timeout mentioned in the error) this error is being output several times per second until the server is stopped.

▲ [WARNING] Failed to get worker definitions TypeError: fetch failed

      at Object.processResponse
  (/Users/andre/code/wrangler-bug/node_modules/wrangler/wrangler-dist/cli.js:8846:27)
      at /Users/andre/code/wrangler-bug/node_modules/wrangler/wrangler-dist/cli.js:9178:42
      at node:internal/process/task_queues:140:7
      at AsyncResource.runInAsyncScope (node:async_hooks:203:9)
      at AsyncResource.runMicrotask (node:internal/process/task_queues:137:8)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
    cause: ConnectTimeoutError: Connect Timeout Error
        at onConnectTimeout
  (/Users/andre/code/wrangler-bug/node_modules/wrangler/wrangler-dist/cli.js:2870:29)
        at /Users/andre/code/wrangler-bug/node_modules/wrangler/wrangler-dist/cli.js:2828:51
        at Immediate._onImmediate
  (/Users/andre/code/wrangler-bug/node_modules/wrangler/wrangler-dist/cli.js:2859:13)
        at process.processImmediate (node:internal/timers:471:21) {
      code: 'UND_ERR_CONNECT_TIMEOUT'
    }
  }

steps to reproduce:

  • npx create-remix@latest
    • name
    • Just The Basics
    • Cloudflare Pages
    • Typescript
    • Y
  • npm run dev
  • wait 10-15 seconds.

Note: I do not have wrangler installed globally, and have tried running this same command after running npx wrangler login and the error is still output.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:8

github_iconTop GitHub Comments

2reactions
cmoogcommented, Nov 16, 2022

I’m encountering this error as well on 2.3.2

1reaction
tom-shermancommented, Nov 26, 2022

I fixed this on my machine by finding the port listening on 6284 (the dev registry server) and force quitting this. I’m on macos and performed the following steps:

sudo lsof -i -P | grep LISTEN | grep :6284

This outputted the process name (“node”) and the PID. I then found this process in Activity Monitor and force quit it.

Restarting your machine would probably do a similar job.

Read more comments on GitHub >

github_iconTop Results From Across the Web

FetchFailedException or MetadataFetchFailedException when ...
This error is almost guaranteed to be caused by memory issues on your executors. I can think of a couple of ways to...
Read more >
Troubleshoot Dataflow errors - Google Cloud
This error occurs if a single operation causes the worker code to fail four times. Dataflow fails the job, and this message is...
Read more >
Troubleshooting Connection Issues to Neo4j
Packets are dropped, and so the result is a connection timeout. ... A common reason why this error occurs is that your Neo4j...
Read more >
Troubleshooting GitLab Runner
This probably occurs because when the runner is removed, the role bindings are removed. The runner pod continues until the job completes, and...
Read more >
Bug listing with status RESOLVED with resolution FIXED as at ...
Bug :2 - "How do I attach an ebuild. ... Bug:146 - "imaging python lib ebuild error" status:RESOLVED resolution:FIXED severity:normal · Bug:147 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found