-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uses ECONNABORTED for timeouts instead of ETIMEDOUT #1543
Comments
This is very important to us as well. but please add this to http adapter as well as xhr |
Would be very nice to have! |
how is it going? |
as a workaround, you should be able to check the message or stack for timeout |
+1 |
+1 |
Closing in favour of #2710 |
The |
I don't see how this is related to #2710, but I do agree this should be closed. For us, this functionality is covered with |
Summary
Axios seems to set a code of ECONNABORTED when a request times out:
axios/lib/adapters/xhr.js
Line 107 in 0b3db5d
This makes it difficult to tell when a request actually timed out vs. being aborted in a different way:
axios/lib/adapters/xhr.js
Line 89 in 0b3db5d
Should ETIMEDOUT be used instead?
Context
The text was updated successfully, but these errors were encountered: