workers-sdk: ๐ BUG: wrangler dev -> fetch failed
Which Cloudflare product(s) does this pertain to?
Workers/Other, Wrangler
What version of Wrangler are you using?
2.18.0
What operating system are you using?
Windows
Describe the Bug
Whenever I run โwrangler devโ I get the following error:
[ERROR] Error while creating remote dev session: TypeError: fetch failed
at fetch (\my-test-api\node_modules\wrangler\wrangler-dist\cli.js:16584:17) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async createPreviewSession (\my-test-api\node_modules\wrangler\wrangler-dist\cli.js:132585:28) at async start (\my-test-api\node_modules\wrangler\wrangler-dist\cli.js:151229:9) { cause: ConnectTimeoutError: Connect Timeout Error at onConnectTimeout (\my-test-api\node_modules\wrangler\wrangler-dist\cli.js:7185:29) at \my-test-api\node_modules\wrangler\wrangler-dist\cli.js:7141:51 at Immediate._onImmediate (\my-test-api\node_modules\wrangler\wrangler-dist\cli.js:7171:37) at process.processImmediate (node:internal/timers:476:21) { code: โUND_ERR_CONNECT_TIMEOUTโ } }
This is a brand new project with wrangler init, but when I ran wrangler dev it had the same error. Project has only the initial project changes nothing has been modified after the project is created . with -l local run is fine.
About this issue
- Original URL
- State: open
- Created a year ago
- Reactions: 1
- Comments: 20 (5 by maintainers)
Hey everyone! ๐ As an update, weโve identified a potential cause for the errors that are coming from the service registry (
Failed to register worker in local service registry,Failed to get worker definitions,Failed to unregister worker) and will aim to get a fix out in the next few weeks. ๐As a quick update for people following this issue, we have a PR that could fix this problem in most cases (#4241), but weโre going to hold off merging it until some other work to rearchitect Wrangler-as-a-library is complete (#4413). ๐
So I suddenly started getting this which is weird because I dont recall changing anything. One second it wasnโt there and suddenly it was
Using
โ ๏ธ wrangler 3.5.1Hello. PM for the Wrangler team ๐ I have a few questions about this issue that would be really helpful to get answers to:
wrangler devfor remote development?