Tag: graphql-request
-
Codegen and Graphql-Request Error: Server Error TypeError: Cannot read properties of null (reading ‘useState’)
0 This is the Error image im getting when I start my frontend Server Error TypeError: Cannot read properties of null (reading ‘useState’) This error happened while generating the page. Any console logs will be displayed in the terminal window. I am building a Full stack App using NextJs,GraphQL and codegen. When i run the…
-
issue with graphql-request react onClick handler
0 I am using graphql-request to execute a mutation in an onClick handler in a react application The mutation executes successfully (I can verify by looking at the logs in the backend). The code in onClick handler (loginHandler) following the gqlClient.request never executes (console.log or alert) here is the code, any idea what am I…
-
Why the error `Failed to execute ‘text’ on ‘Response’: body stream already read` if I’m re-assigning res.json?
1 I’m trying to use the code I found here for APQ (automatic persisted queries) and graphql-request. But if I use the code like described: export const graphQLClient = new GraphQLClient("https://localhost:3000", { fetch: createPersistedQueryFetch(fetch), }); I’m getting this error in browser’s console: TypeError: Failed to execute ‘text’ on ‘Response’: body stream already read at getResult…