Skip to content

ECONNREFUSED, address ::1 #292

@missinglink

Description

@missinglink

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions