Error: connect EADDRNOTAVAIL ::1:3003
Closed this issue · 3 comments
avegancafe commented
Hello! I'm trying to use this util to wait for a server to start in gitlab CI and am seeing this error message immediately as soon as this command is run, not really sure why. Any ideas as to how this could happen? Thanks in advance for your consideration.
$ npx --yes wait-port --wait-for-dns http://:3003/
Waiting for localhost:3003..
Unknown error occurred waiting for http://:3003/: Error: connect EADDRNOTAVAIL ::1:3003 - Local (:::0)
Cheers,
Kyle
dwmkerr commented
Wow that is weird - can you check your /etc/hosts
file, do you have this entry?
127.0.0.1 localhost
Can you also try this?
DEBUG=wait-port npx --yes wait-port --wait-for-dns http://:3003/
This will provide more debug level info
yeusiukou commented
I experienced the same issue. This was fixed in the latest release. Resolved here: #89
dwmkerr commented
OK thanks for the heads up @yeusiukou ! I'll close this issue but happy to reopen if it is still occurs, thanks all!