Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphQL: Combination of request batching and Automatic Persisted Queries fails #2622

Open
jellenelis opened this issue Jun 5, 2024 · 1 comment
Labels

Comments

@jellenelis
Copy link
Contributor

jellenelis commented Jun 5, 2024

We have successfully executed requests using Automatic Persisted Queries and request batching separately. However, when these two features are combined, the following exception occurs.

graphql.AssertException: query can't be null at graphql.Assert.throwAssert(Assert.java:207) at graphql.Assert.assertNotNull(Assert.java:31) at graphql.ExecutionInput$Builder.query(ExecutionInput.java:221) at io.vertx.ext.web.handler.graphql.impl.GraphQLHandlerImpl.execute(GraphQLHandlerImpl.java:417) at io.vertx.ext.web.handler.graphql.impl.GraphQLHandlerImpl.executeBatch(GraphQLHandlerImpl.java:274) at io.vertx.ext.web.handler.graphql.impl.GraphQLHandlerImpl.handlePostBatch(GraphQLHandlerImpl.java:268) at io.vertx.ext.web.handler.graphql.impl.GraphQLHandlerImpl.handlePostJson(GraphQLHandlerImpl.java:232) at io.vertx.ext.web.handler.graphql.impl.GraphQLHandlerImpl.handlePost(GraphQLHandlerImpl.java:199) at io.vertx.ext.web.handler.graphql.impl.GraphQLHandlerImpl.handle(GraphQLHandlerImpl.java:108) at io.vertx.ext.web.handler.graphql.impl.GraphQLHandlerImpl.handle(GraphQLHandlerImpl.java:50) at io.vertx.ext.web.impl.RouteState.handleContext(RouteState.java:1285) at io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:177) at io.vertx.ext.web.impl.RoutingContextImpl.next(RoutingContextImpl.java:137)

This line seems to successfully set the query if the query is missing, but on this line the query in the GraphQLQuery object seems to be null again.

@jellenelis jellenelis added the bug label Jun 5, 2024
@tsegismont
Copy link
Contributor

Is this actually supported by the Apollo client?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants