You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The timeout option causes an unexpected type of Error to be thrown in Node when the server sends the first response chunk within the timeout, but then hangs.
We still don't rely on axios's timeout option, instead using our own setTimeout() with a axios.CancelToken. FWIW we'll probably migrate off axios to the fetch built into Node.js at some point.
Thanks for such a rapid response, even after a year and a half!
I've been doing more streaming recently, and have come to a similar conclusion. Axios is poorly suited for streaming, especially in client contexts, and even fetch has drawbacks.
I've taken to using raw XMLHttpRequest in many cases.
Describe the bug
The
timeout
option causes an unexpected type of Error to be thrown in Node when the server sends the first response chunk within the timeout, but then hangs.To Reproduce
Inspect console output.
Code snippet
Expected behavior
AxiosError: timeout of 1000ms exceeded
.Axios Version
1.1.3
Adapter Version
No response
Browser
No response
Browser Version
No response
Node.js Version
14.19.3
OS
No response
Additional Library Versions
No response
Additional context/Screenshots
Related #4364.
The text was updated successfully, but these errors were encountered: