Q
Q
qwerty2019-01-28 16:29:19
linux
qwerty, 2019-01-28 16:29:19

What can cause the econnrefused error to occur?

When making requests to api through a proxy (https-proxy-agent is used for the proxy), the ECONNREFUSED error sometimes occurs. So what could be the problem if the proxies are good? Kill and connect again? :( There are not many requests, ~40-80 per second from the entire node.
node -v v11.6.0

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Wolf, 2019-01-28
@mannaro

ECONNREFUSED occurs if the server (proxy) rejected the request. And this means that something not good is happening with your proxy after all.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question