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
Include request and config when creating a CanceledError
.
#4659
Include request and config when creating a CanceledError
.
#4659
Conversation
CanceledError
.CanceledError
.
Specifically, this enables |
Thanks for the PR looks great :) |
Hey @jasonsaayman, sorry to bother you, but can you at least make a patch release with this fix soon? |
Cool I will try get the small changes cherry picked |
Hey @jasonsaayman, sorry to bother you again... Can this fix be released into a new v0 patch? It is leading to many bugs when integrating with See arthurfiorette/axios-cache-interceptor/issues/317. If you could just cherry pick this PR (and #4711 & #4922 [they are related]) to v0.27.3 would be awesome!!! Thanks. |
Currently, only the error thrown by a canceled request does not maintain any data connection with its original request. This way, it's basically impossible to trace back which request was canceled based on just the error thrown.
This PR only enables all available parameters to the AxiosError instance:
config
andrequest
.axios/lib/core/AxiosError.js
Line 15 in bc733fe
This way, any following
CanceledError
thrown will have the request and request config available.