RTK Interceptor Query Throwing "FETCH_ERROR" with no additional information. #4065
Unanswered
steventnorris
asked this question in
Q&A
Replies: 1 comment 8 replies
-
Have you tried wrapping your util calls in try catch blocks and console.logging any errors? |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using RTKQuery with React Native and Webpack. I have an interceptor query set up that does some processing of errors and other logic prior to returning the response. In this interceptor query, I call out to a static method in a util. However, the interceptor query throws a "FETCH_ERROR" with a very non-descriptive error whenever I include my util static method code. It never actually reaches the code, but just having it in there causes it to fail. If I comment the code out, it runs fine. Then, if I uncomment it and allow it to hot-swap the code in, it still runs fine. I only ever get the error on the initial app load when a query runs.
Some things I've tested and known for certain:
I have a link here for a general idea of how I have my api setup: codesandbox
Two questions:
Beta Was this translation helpful? Give feedback.
All reactions