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
We encountered that the config property of AxiosError is undefined in some cases, we assume in the case of network errors. This is not reflected by the type of AxiosError.config which can lead to runtime issues and might crash your application if you try to read error.config.url for example.
To Reproduce
Create a network error where the request failed to send, retrieve error as an AxiosError and try to access one of the properties of error.config for example
error.config.url
Expected behavior
The type of AxiosError.config should say that it can be undefined.
Describe the bug
We encountered that the
config
property ofAxiosError
isundefined
in some cases, we assume in the case of network errors. This is not reflected by the type ofAxiosError.config
which can lead to runtime issues and might crash your application if you try to readerror.config.url
for example.To Reproduce
Create a network error where the request failed to send, retrieve
error
as anAxiosError
and try to access one of the properties oferror.config
for exampleExpected behavior
The type of
AxiosError.config
should say that it can beundefined
.Environment
The text was updated successfully, but these errors were encountered: