What is the difference between an ECONNRESET and an ECONNREFUSED error in Postman?

Question

Grade: Education Subject: Support
What is the difference between an ECONNRESET and an ECONNREFUSED error in Postman?
Asked by:
82 Viewed 82 Answers

Answer (82)

Best Answer
(339)
ECONNREFUSED means the server actively refused the connection (e.g., the service isn't listening on the specified port). ECONNRESET means the server abruptly closed the connection after it had been established or attempted. ECONNREFUSED is a server-side 'no service' error, while ECONNRESET is a server-side 'connection terminated' error.