Closed GRabia closed 7 months ago
Thanks for reporting this!
From the stacktrace, it appears that this actually happens when executing a query. The cache interceptor is trying to delete a cached response from the disk cache, and fails - probably due to some I/O error. This should probably be caught inside the interceptor instead of being thrown - I will make a fix for that.
In the meantime, if you currently enclose your calls to execute() in a try catch
you may want to broaden your catch clause from ApolloException
to Exception
to catch this one.
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Kotlin usage and allow us to serve you better.
Version
3.8.2
Summary
Android app has been updated from Apollo 2.5.14 to 3.8.2 And now that I've moved, I'm receiving this error. I can't figure out the precise code where is coming from, nor can I reproduce it. However I am suspecting it is from apolloClient.apolloStore.clearAll() or apolloClient.httpCache.clearAll(), I added a try catch block to attempt and catch this exception while clearing the cache upon logout, but it was unsuccessful, and the crash continued.
-------------------This crash occurs, with Android 10 and above only ---------------
Happened recently on this device: Brand:Google Model:Pixel 7a Orientation:Portrait RAM free: 1.23 GB Disk free: 28.9 GB Operating System Version:Android 14
Steps to reproduce the behavior
Non-Reproducible
Logs