Skip to content

Instantly share code, notes, and snippets.

@Noitidart
Created May 10, 2019 12:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Noitidart/3c5bf1801c1b36381273ac082dc897d4 to your computer and use it in GitHub Desktop.
Save Noitidart/3c5bf1801c1b36381273ac082dc897d4 to your computer and use it in GitHub Desktop.
// server down
{ Error: connect ECONNREFUSED 127.0.0.1:1337
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1061:14)
  errno: 'ECONNREFUSED',
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '127.0.0.1',
  port: 1337 }
// network down
{ Error: getaddrinfo ENOTFOUND www.duckduckgo.com
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:58:26)
  errno: 'ENOTFOUND',
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: 'www.duckduckgo.com' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment