Comments (6)
Hi! Thanks for reporting this. Bodies should definitely not be null here, although here they're request (not response) bodies, which makes me think something other than network flakiness may be the root cause. Would you have a way to reproduce this by any chance?
from apollo-kotlin.
Yeah, I realized it happens every time when using
ApolloClient.Builder()
...
.httpBatching()
whereas adding .canBeBatched(true)
to the query invocation works fine.
from apollo-kotlin.
we have this as well in the builder, if that matters:
.autoPersistedQueries(
// For the initial hashed query that does not send the actual Graphql document
httpMethodForHashedQueries = HttpMethod.Get,
// For the follow-up query that sends the full document if the initial hashed query was not found
httpMethodForDocumentQueries = HttpMethod.Get
)
from apollo-kotlin.
Ah that explains it, thanks.
Indeed, with auto persisted queries configured with GET, requests won't have a body which causes this crash when trying to batch them.
I'm curious to know if your server will support batching and APQ at the same time - you could try with Post
instead to confirm.
If you want to use both features in different parts of your code, you can configure them with enableByDefault = false
and then enable them on individual calls with .enableAutoPersistedQueries(true)
or canBeBatched(true)
.
from apollo-kotlin.
@ber4444 Is there anything else we can do on this?
from apollo-kotlin.
Closing for now, don't hesitate to reopen a ticket if you need assistance.
from apollo-kotlin.
Related Issues (20)
- Pagination: merge `nodes` field in addition to `edges` HOT 6
- Is SSL Pinning possible with Kotlin Multi Platform HOT 4
- [IJ Plugin] Tweak navigation from GraphQL to generated code
- How to throw error apollographql based from OkHttp HOT 5
- QueueTestNetworkTransport `enqueueTestResponse` function not found in java project,Does it not support java? HOT 11
- Multi Module & Multiple Schema support HOT 7
- Run subscriptions like queries with IDE plugins HOT 3
- The tutorial API doesn't return errors when fed an unknown launch id.
- [IJ/AS plugin] Internal error: NullPointerException
- ApolloParseException is wrapping SocketException, StreamResetException HOT 1
- lateinit property context has not been initialized HOT 9
- [IJ/AS plugin] Internal error: NullPointerException HOT 2
- [IJ Plugin] Crash when navigating to GraphQL operation via margin marker
- Lazy version of `okHttpCallFactory`? HOT 2
- ApolloClient.Builder.okHttpClient() returns `null` instead of `this` HOT 1
- Use MockServer in Integration Tests (aka Mocked Automation) HOT 5
- Codegen: rework how compiled field arguments are generated
- [IJ Plugin] Specific Gradle DSL for endpoints used by the IDE plugin
- Build fails with Android 15 HOT 8
- Feature to not emit cache misses? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apollo-kotlin.