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: `wrangler dev` fails to start due to `getaddrinfo ENOTFOUND`

See original GitHub issue

What version of Wrangler are you using?

2.1.15

What operating system are you using?

Windows 11 21H1

Describe the Bug

When a workers script is deployed to a custom domain, and that domain is a subdomain of the zone, and the zone does not have any content, wrangler dev fails to launch.

Example: api.example.com (the worker) works just fine and example.com is intentionally empty (no A/CNAME records)

Error log:

✘ [ERROR] Error while creating remote dev session: TypeError: fetch failed

      at fetch8 (<REDACTED>\node_modules\wrangler\wrangler-dist\cli.js:13702:17)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async createPreviewSession
  (<REDACTED>\node_modules\wrangler\wrangler-dist\cli.js:144445:28)
      at async start (<REDACTED>\node_modules\wrangler\wrangler-dist\cli.js:145088:9)
  {
    cause: Error: getaddrinfo ENOTFOUND <REDACTED>
        at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26) {
      errno: -3008,
      code: 'ENOTFOUND',
      syscall: 'getaddrinfo',
      hostname: '<REDACTED>'
    }
  }

Running wrangler dev fails Running wrangler dev --local works just fine Running wrangler publish and then visiting the subdomain works just fine

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jspspikecommented, Nov 29, 2022

Could you please show your wrangler.toml to see what your routes are set to? And run wrangler with log level set to debug?

0reactions
jspspikecommented, Dec 6, 2022

This seems to be the same as #2031, closing this and continuing there

Read more comments on GitHub >

github_iconTop Results From Across the Web

Node.js getaddrinfo ENOTFOUND - Stack Overflow
I got this error when going from development environment to production environment. I was obsessed with putting https:// ...
Read more >
Getting a "getaddrinfo ENOTFOUND fall" error when
Installed an on-premise experience service and trying to start it using sudo ./start-es.sh but getting the error below. Error: getaddrinfo ...
Read more >
Untitled
Tipos de discriminacion en argentina, Statistics vs calculus difficulty, Cheveux afros naturels, Error getaddrinfo enotfound npm install, Midlands finals ...
Read more >
Untitled
Ins-20802 oracle net configuration assistant failed 11g, Bf4 beta gtx 570, ... First 500 high frequency words, Uncaught exception getaddrinfo enotfound, ...
Read more >
LTn - ALBA.Net
Hr2084 philips, Delicious junction, Dji phantom zenmuse problem, Semaine impaire ... Wilku broda, Chiltepinos hermosillo, Error getaddrinfo enotfound npm, ...
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