Skip to content
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

Improve timeout error when timeout is browser default #3209

Merged
merged 4 commits into from Sep 16, 2021

Conversation

dobesv
Copy link
Contributor

@dobesv dobesv commented Aug 19, 2020

I seems like the browser imposes a default timeout despite the documented default timeout being "never". When this timeout occurs, axios confusingly reports an error "timeout of 0ms exceeded". This change the message to avoid the confusing "0ms" part.

Fix for #2103

I seems like the browser imposes a default timeout despite the documented default timeout being "never".  When this timeout occurs, axios confusingly reports an error "timeout of 0ms exceeded".  This change the message to avoid the confusing "0ms" part.
@tonydehnke
Copy link

Just ran into this issue with 0.21.1, would be great to see this merged.

@jasonsaayman jasonsaayman merged commit 96956e3 into axios:master Sep 16, 2021
mbargiel pushed a commit to mbargiel/axios that referenced this pull request Jan 27, 2022
I seems like the browser imposes a default timeout despite the documented default timeout being "never".  When this timeout occurs, axios confusingly reports an error "timeout of 0ms exceeded".  This change the message to avoid the confusing "0ms" part.

Co-authored-by: Jay <jasonsaayman@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants