Help: axios not catching errors #4913
-
If anyone could help I would greatly appreciate it: I have a axios post (FN down below) that I'm failing intentionally to try to catch the error, however, it is returning to the THEN block instead of the CATCH block. I put a breakpoint in the THEN block and the response is "undefined" and the network response tab is empty. Once I clear the breakpoint I see the error response in the network tab however, it's too late at that point. { ` const testDBConnection = () => {
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I found the issue. There was an interceptor that was eating the error. |
Beta Was this translation helpful? Give feedback.
I found the issue. There was an interceptor that was eating the error.