pelias / docker

Run the Pelias geocoder in docker containers, including example projects.
MIT License
330 stars 223 forks source link

ECONNREFUSED, address ::1 #292

Open missinglink opened 2 years ago

missinglink commented 2 years ago

From nodejs@v17 onwards there is a change where host names are selected based on the order provided from the DNS resolution: https://github.com/nodejs/node/pull/39987

Prior to this change node would re-order the DNS records such that the ipv4 address always came first, an option which can be manually selected with the following CLI flag:

node --dns-result-order=ipv4first script.js

Users of node >= 17 may notice a similar error to this when not using the above flag:

error: [libpostal] http://localhost:4400/parse?address=Example: 
{"errno":-61,"code":"ECONNREFUSED","syscall":"connect","address":"::1","port":4400,"retries":0}

note: the requested host is localhost but the connection error says: "address":"::1".

this issue is open so we can track it while we figure out the best way to deal with it.