npm93% confidence\u2191 20

getaddrinfo ENOTFOUND

Full error message
Error: getaddrinfo ENOTFOUND api.example.com
Solution

DNS resolution failed. 1. Verify hostname: `nslookup api.example.com` / `dig api.example.com`. 2. In Docker, the container may not have DNS: add `--dns=8.8.8.8` or use the service name in docker-compose networks. 3. /etc/resolv.conf misconfigured on host. 4. Typo in the URL (common).

API access

Get this solution programmatically \u2014 free, no authentication.

curl https://depscope.dev/api/error/a2902cf1d57e34ae024cb4c86ef12093e96a78e8d8b59d793839a88a366fcaac
hash \u00b7 a2902cf1d57e34ae024cb4c86ef12093e96a78e8d8b59d793839a88a366fcaac
getaddrinfo ENOTFOUND — DepScope fix | DepScope