Fixing an ECONNRESET error

View as Markdown

You are experiencing the following issue

I am seeing an ECONNRESET error when:

  • Sending a request in Postman
  • Sending a request in Newman
  • Running requests using the Collection Runner
  • Monitoring an API

What to expect

  • The ECONNRESET error means that the server unexpectedly closed the connection and the request to the server was not fulfilled.
  • Connection problems often stem from networking issues caused by Virtual Private Networks (VPNs). Sometimes, a VPN is necessary for accessing certain API services but in other cases, it can block your access to an API.

Unblock yourself

If the endpoint is public, try to switch off your VPN.

  • Ensure your request configuration is error-free by checking for typos, extra spaces, or invalid JSON formatting.
  • Compare the API documentation of the service you’re making a call to and verify that the below elements if required, are configured correctly in the request:
  • If you get the error when using the Collection Runner or when you are using Monitors , try to replicate the issue by sending an individual request in Postman. If the request doesn’t return the error, the server might have been overloaded.

If the issue persists after following the steps in the Unblock Yourself section, reach out to the service provider of the endpoint you are trying to make a call to.


Have more questions? Submit a request