Unable to understand ECONNABORTED errorCode for XHR requests #6257
Unanswered
Suhasmv1998
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
We are getting ECONNABORTED error from Axios for our web App. When I look at axios documentation, it says that ECONNABORTED comes when "Request timed out due to exceeding timeout specified in axios configuration.". But the timeout we have set in Axios configuration is 30 seconds, but it is failing at 3 seconds (got to know from our telemetry) with this error code. I suspect that user or browser itself has canceled the request and hence we were seeing this error.
When I look at code, it says that ECONNABORTED is thrown in two cases, one when browser cancels the request and when there is timeout as well. Adding screenshots. Please let me know when exactly ECONNABORTED happens and is there a way I can repro it (so that I can debug)? Thank you in advance :)
Beta Was this translation helpful? Give feedback.
All reactions