ECONNREFUSED

TCP connection-refused error — nothing is listening on the target host and port the client tried to reach.

Definition

ECONNREFUSED is the POSIX error code returned when a TCP connection attempt reaches the target host but no process is listening on the requested port. Common causes in automation: the target service crashed, a Docker container is not yet ready, a firewall blocks the port, or an n8n HTTP Request points at the wrong port or localhost vs container hostname.

When to use

See also