🐛 BUG: `wrangler dev` fails to start due to `getaddrinfo ENOTFOUND`
See original GitHub issueWhat 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:
- Created 10 months ago
- Comments:6 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Could you please show your
wrangler.toml
to see what your routes are set to? And run wrangler with log level set to debug?This seems to be the same as #2031, closing this and continuing there