ApolloPersistedQuerySupport - GraphQL Exception Query parameter not found in GET request #2647
Unanswered
codingpierogi
asked this question in
Q&A
Replies: 1 comment 3 replies
-
What framework are you using to handle HTTP |
Beta Was this translation helpful? Give feedback.
3 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.
-
Hi,
I'm trying to implement ApolloPersistedQuerySupport in a Spring Boot application and I'm stuck on the GraphQL Exception "Query parameter not found in GET request.".
My React application is using Apollo Client and issues the following HTTP request:
GET http://localhost:8080/graphql?variables=%7B%22locale%22%3A%22en%22%7D&extensions=%7B%22persistedQuery%22%3A%7B%22version%22%3A1%2C%22sha256Hash%22%3A%229bfd7a6b058c1c1a2b744eedeb6eff2bdcf231edfe67ac172c4177eb26a238c1%22%7D%7D
The GraphQL Server is then throwing a GraphQL Exception from GraphQLGetInvocationInputParser. Relevant code below:
String query = request.getParameter("query"); if (query == null) { throw new GraphQLException("Query parameter not found in GET request"); }
Is there anymore documentation around this feature Execution > Query Caching? Any open source projects that implement ApolloPersistedQuerySupport?
Any help greatly appreciated.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions