How to ignore errors in interceptors after request cancellation
Describe the issue
When I cancel a request, I will enter the failure handling in the response interceptor. How to prevent throwing an exception here because I don't want to see the error of canceling the request printing in the console
Example Code
No response
Expected behavior
No response
Axios Version
No response
Adapter Version
No response
Browser
No response
Browser Version
No response
Node.js Version
No response
OS
No response
Additional Library Versions
No response
Additional context/Screenshots
No response
https://stackoverflow.com/a/73635264 https://github.com/axios/axios/issues/293
I came across this. You can use interceptors to get and resolve it as you want.
Same question. How can I keep some intercepter's already handled errors from bubbling? Make them fail silently
closing as solution is provided