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
Is it possible to mock a lack of a response? I'd like to test Axios error handling when a request is made but the server does not respond. If I use .timeout(), the request object on the AxiosError is not present.
I want to echo this. In these cases, the error message should include a request object to help identify when the error is due to a network issue. The missing request is not triggering the expected error handling in my code, and I cannot wholly test my services.
Is it possible to mock a lack of a response? I'd like to test Axios error handling when a request is made but the server does not respond. If I use
.timeout()
, the request object on the AxiosError is not present.https://axios-http.com/docs/handling_errors
The text was updated successfully, but these errors were encountered: