Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECONNREFUSED, address ::1 #292

Open
missinglink opened this issue Jun 20, 2022 · 0 comments
Open

ECONNREFUSED, address ::1 #292

missinglink opened this issue Jun 20, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@missinglink
Copy link
Member

missinglink commented Jun 20, 2022

From nodejs@v17 onwards there is a change where host names are selected based on the order provided from the DNS resolution: nodejs/node#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.

@missinglink missinglink added the enhancement New feature or request label Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant