Skip to content

Improve timeout error when timeout is browser default#3209

Merged
jasonsaayman merged 4 commits intoaxios:masterfrom
dobesv:patch-1
Sep 16, 2021
Merged

Improve timeout error when timeout is browser default#3209
jasonsaayman merged 4 commits intoaxios:masterfrom
dobesv:patch-1

Conversation

@dobesv
Copy link
Copy Markdown
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
Copy Markdown

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.

3 participants