Look up common error codes (ECONNREFUSED, CORS, 502, etc.) with fixes.
ECONNREFUSEDNetworkConnection refused. The target server is not running or not accepting connections on that port.
Fix: Check if the server is running. Verify the port number. Check firewall rules.
ENOTFOUNDNetworkDNS lookup failed. The hostname could not be resolved.
Fix: Check the URL/hostname for typos. Verify DNS settings. Check internet connection.
ETIMEDOUTNetworkConnection timed out. The server didn't respond within the time limit.
Fix: The server may be overloaded. Check network connectivity. Increase timeout settings.
EADDRINUSENetworkPort is already in use by another process.
Fix: Kill the process using the port: `lsof -i :PORT` then `kill PID`. Or use a different port.
CORSBrowserCross-Origin Resource Sharing blocked. Browser security prevents requests to a different domain.
Fix: Add CORS headers on the server. Use a proxy in development. Check Access-Control-Allow-Origin header.
ERR_MODULE_NOT_FOUNDNode.jsCannot find the module/package you're trying to import.
Fix: Run `npm install`. Check import path for typos. Verify package exists in node_modules.
ENOMEMSystemOut of memory. The process exceeded available RAM.
Fix: Increase Node.js memory: `--max-old-space-size=4096`. Check for memory leaks. Add swap space.
EPERMSystemPermission denied. The operation requires elevated privileges.
Fix: Run with sudo/admin. Check file permissions with `ls -la`. Change ownership with `chown`.
ENOENTSystemNo such file or directory. The path doesn't exist.
Fix: Check the file path for typos. Ensure the file exists. Check relative vs absolute paths.
SIGKILLProcessProcess was forcefully terminated (OOM killer or manual kill).
Fix: Check system memory. The process may have been killed by the OS OOM killer.
SIGTERMProcessProcess received a termination signal (graceful shutdown).
Fix: This is usually intentional. Handle SIGTERM in your code for cleanup.
ERR_CONNECTION_RESETNetworkConnection was reset by the remote server.
Fix: Server may have crashed. Check server logs. Could be a firewall or proxy issue.
413HTTPPayload Too Large. The request body exceeds the server's size limit.
Fix: Reduce payload size. Increase server's body-parser limit. Use chunked uploads.
429HTTPToo Many Requests. You've been rate-limited.
Fix: Implement exponential backoff. Reduce request frequency. Check API rate limit headers.
502HTTPBad Gateway. The reverse proxy received an invalid response from the backend.
Fix: Check if the backend service is running. Check proxy configuration (nginx/apache).
503HTTPService Unavailable. The server is overloaded or under maintenance.
Fix: Wait and retry. Scale the service. Check server health and logs.
DEPTH_ZERO_SELF_SIGNED_CERTSSLSelf-signed certificate not trusted.
Fix: In dev: set `NODE_TLS_REJECT_UNAUTHORIZED=0`. In prod: use a valid certificate (Let's Encrypt).
CERT_HAS_EXPIREDSSLThe SSL certificate has expired.
Fix: Renew the certificate. Check auto-renewal setup (certbot). Restart the web server.