Closed dmtrKovalenko closed 1 year ago
This seems to be an issue with local DNS lookup. Check if an entry like this 127.0.0.1 localhost
exists on your /etc/hosts
file. If the problem persists, please reach out to node-fetch repo to ask for help since cross-fetch
just acts as proxy.
A simple example of
Returns ECONNREFUSED
But when I change
localhost
to127.0.0.1
it works.curl
and any other native api's works either withlocalhost
or127.0.0.1
.System: MacOS Ventura 13.1 Platform: Apple silicon cross-fetch version: 3.1.5 node: 18.13.0