apollo-kotlin: java.lang.IllegalArgumentException: networkResponse.priorResponse != null

Summary

    java.lang.IllegalArgumentException: networkResponse.priorResponse != null
        at okhttp3.Response$Builder.checkSupportResponse(Response.kt:408)
        at okhttp3.Response$Builder.networkResponse(Response.kt:394)
        at com.apollographql.apollo.cache.http.HttpCacheInterceptor.networkFirst(HttpCacheInterceptor.java:111)
        at com.apollographql.apollo.cache.http.HttpCacheInterceptor.intercept(HttpCacheInterceptor.java:51)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
        at com.globo.jarvis.JarvisClient$providerHeaderInterceptor$1.intercept(Unknown Source:219)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
        at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.kt:221)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
        at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
        at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:517)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:923)

Version 2.4.4

Description When I add the following cache rules and I get an error from the server (408, 500), the crash happens

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 17 (6 by maintainers)

Commits related to this issue

Most upvoted comments

@martinbonnin Everything working perfectly, thanks!

I will do the test