Jaime
04/30/2022, 6:29 AMStandaloneCoroutine was canceled
it only happens to me when a specific api is consumed
this is my apollo configuration
val logging = HttpLoggingInterceptor()
logging.level = HttpLoggingInterceptor.Level.NONE
if (BuildConfig.DEBUG) {
logging.level = HttpLoggingInterceptor.Level.BODY
}
val okHttpClient = OkHttpClient.Builder()
.addInterceptor(logging)
.connectTimeout(8, TimeUnit.SECONDS)
.readTimeout(8, TimeUnit.SECONDS)
.writeTimeout(8, TimeUnit.SECONDS)
apolloClient = ApolloClient.Builder()
.serverUrl(
BuildConfig.HOST
)
.okHttpClient(
okHttpClient.build()
)
.normalizedCache(
SqlNormalizedCacheFactory(context, "h_apollo.db"),
writeToCacheAsynchronously = true
)
.addInterceptor(
SessionInterceptor(context)
)
.addInterceptor(
LanguageInterceptor()
)
.build()
HttpLogginInterceptor print
<-- HTTP FAILED: java.io.IOException: Canceled
mbonnin
04/30/2022, 7:43 AMJaime
04/30/2022, 6:13 PMJaime
04/30/2022, 6:13 PMmbonnin
04/30/2022, 6:54 PMannsofi
05/01/2022, 6:10 AMJaime
05/02/2022, 2:28 PMannsofi
05/02/2022, 2:35 PM