Error Code Portal
Node.jsNode.jsError code

ECONNREFUSED

Connection refused

Code ECONNREFUSED · An issue reported by Node.js.

ECONNREFUSED (Connection refused): No connection could be made because the target machine actively refused it. This usually results from trying to connect to a service that is inactive on the foreign host.

Troubleshooting and diagnostic links

First check that the document's product, version, and environment match your situation.