CLI Error - getaddrinfo ENOTFOUND


#1

For some reason running ionic serve on my machine has suddenly started to error when I try to connect to an api url using a proxy.

I get this in the console:

ionic $ Error: getaddrinfo ENOTFOUND example.url.com example.url.com:80 at errnoException (dns.js:26:10) at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:77:26)

Help please!


#3

Turns out my issue was that I was settings the this.nav.setRoot(CurrentPage) in the constructor of CurrentPage which meant I was creating an infinite loop and eventually that seems to kill the browser and the ionic node server. Oops!