My server threw this today, which is a nodejs error I've never seen before.
Error: getaddrinfo EAI_AGAIN my-store.myshopify.com:443
at Object.exports._errnoException (util.js:870:11)
at errnoException (dns.js:32:15)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:78:26)
I'm wondering if this is related to the DynDns DDOS attack which affected Shopify and many other services today. Here's an article about that.
My main question is what does dns.js
do? What part of node is it apart of? I can I recreate this error with a different domain?
EAI_AGAIN is a DNS lookup timed out error, means it is a network connectivity error or proxy related error.
Some more info: http://www.codingdefined.com/2015/06/nodejs-error-errno-eaiagain.html
The OP's error specifies a host (
my-store.myshopify.com
). The error I encountered is the same in all respects except that no domain is specified.My solution may help others who are drawn here by the title "Error: getaddrinfo EAI_AGAIN"
I encountered the error when trying to serve a NodeJs & VueJs app from a different VM from where the code was developed originally.
The file
vue.config.js
read :When served on the original machine the start up output is :
Using the same settings on a VM
tstvm07
got me a very similar error to the one the OP describes:If it ain't already obvious, changing
vue.config.js
to read ...... solved the problem.
@xerq pointed correctly, here's some more reference http://www.codingdefined.com/2015/06/nodejs-error-errno-eaiagain.html
i got the same error, i solved it by updating "hosts" file present under this location in windows os
C:\Windows\System32\drivers\etc
Hope it helps!!
This is the issue related to hosts file setup. Add the following line to your hots file In Ububtu: /etc/hosts
In windows: c:\windows\System32\drivers\etc\hosts
updating the npm to latest fixes this problem for me.
this issue is related to your network connectivity. hence can be temporary. on a stable internet connection this issue was hardly observed.