React Query all of a sudden returns an error but the request is successful #5607
-
Greetings, I sat down to do some coding today only to find that I wasn't able to log into my app. "That's odd" I said to myself, it was working fine when I left it a few days ago. After a lot of troubleshooting, I've gotten no where. I'm using React Query to get data from my GraphQL server in a NextJS environment. The odd thing is, the request works fine. I get data back correctly when I inspect it in the developer tools. For some reason, React Query keeps throwing the error below:
As you can see, my requested data is there! The only thing that seems off is the I even copied the request over to postman but didn't have any issues there nor did I get a xml response. I'm pretty stumped at the moment to say the least. I'm running React Query v.4.29.13 and my request client is graphql-request v6.1.0 I should mention that I deployed my code to Vercel this evening and there are no issues. I've also tried a different browser in case something wonky was going on with Chrome. The only other thing that's changed with my mac was I did the recent xcode update. Anyone have the slightest clue what's going on? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Turns out it's GraphQL Yoga v4.0.1. If you come across this issue, check out the github issue |
Beta Was this translation helpful? Give feedback.
Turns out it's GraphQL Yoga v4.0.1.
If you come across this issue, check out the github issue