Skip to content
MtrXTools

ECONNABORTED

The connection or request was aborted

Seen in Node.js, axios ("timeout of 5000ms exceeded"), Windows (WSAECONNABORTED 10053)

The request was cut off before it finished: in axios this usually means its timeout fired, elsewhere the local system aborted the connection.

Common causes

  • axios reached its timeout setting before the response completed (message "timeout of Nms exceeded").
  • The server is slow or overloaded, or a large response takes longer than the timeout.
  • A local firewall, antivirus or VPN aborted the established connection.
  • The request was cancelled in code (axios "Request aborted").

How to fix it

  1. Check how long the request really takes and set the timeout above that, or speed up the endpoint.
  2. Test whether the host and port answer quickly from the same machine.
  3. Check local security software and VPN if connections drop on one machine only.
Measure latency to the host

Got a different message? Paste it into the error explainer.

Related errors

All 34 Command line & code errors