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

Seeing connect ECONNREFUSED 127.0.0.1:443 coming from got libary #108

Open
laurie-wrisk opened this issue Nov 1, 2021 · 1 comment
Open

Comments

@laurie-wrisk
Copy link

laurie-wrisk commented Nov 1, 2021

Full error output is below. This comes from any call that I've tried, e.g. await client.customers.find('CUXXXXX')

GotError: connect ECONNREFUSED 127.0.0.1:443
    at onError (/Users/laurie/wrisk/runbook/.yarn/cache/got-npm-10.7.0-9215e39e3e-e233703fcf.zip/node_modules/got/dist/source/request-as-event-emitter.js:140:29)
    at handleRequest (/Users/laurie/wrisk/runbook/.yarn/cache/got-npm-10.7.0-9215e39e3e-e233703fcf.zip/node_modules/got/dist/source/request-as-event-emitter.js:173:17)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16) {
  name: 'RequestError',
  code: 'ECONNREFUSED'
}

Someone else reported a similar issue coming from this repo at the beginning of the year here: #88. I've asked if they ever found a solution.

Could this be caused by using got version ^10.2.2 (10.7.0 being used)? Latest version of got is 11.8.2: https://www.npmjs.com/package/got.

@monossido
Copy link

monossido commented Oct 11, 2022

Same here...

EDIT:
fixed by upgrading all libraries listed with npm ls agent-base

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants