Error: getaddrinfo ENOTFOUND

1,406 views
Skip to first unread message

Aarti Kumar

unread,
Jul 11, 2017, 8:02:48 AM7/11/17
to LoopbackJS
Hi,

I am getting this error on my Mac OS Sierra even when I download and try to run the sample loopback app. Can't really figure this out. Can anyone help please?!

node .

events.js:160

      throw er; // Unhandled 'error' event

      ^


Error: getaddrinfo ENOTFOUND CELLAP036.local

    at errnoException (dns.js:28:10)

    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)


Thanks so much,
Aarti

mbaj...@gmail.com

unread,
Jul 12, 2017, 3:20:29 AM7/12/17
to LoopbackJS
The error "Error: getaddrinfo ENOTFOUND CELLAP036.local" means that Node.js is not able to resolve hostname "CELLAP036.local" into an IP address (via DNS).

The hostname looks to me like a local computer name assigned by operating system (e.g. MacOS/OSX). I don't know how did it get into your application - have you perhaps configured some of your connectors to connect to this host? Perhaps the hostname is used instead of localhost by code that queried the operating system about the computer host name. In that case, you may be able to solve the problem by explicitly specifying localhost in your configuration (datasources.json, etc.)

Miroslav

Aarti Kumar

unread,
Jul 12, 2017, 4:48:18 AM7/12/17
to LoopbackJS
Thanks so much, Miroslav... I did specify the hostname explicitly and it was not working still. There were some other issues as well with my Mac OS Sierra... I am downgrading it to El Capitan and reinstalling everything. 

Warm regards,
Aarti
Reply all
Reply to author
Forward
0 new messages