Ashinch / ReadYou

An Android RSS reader presented in Material You style.
GNU General Public License v3.0
5.08k stars 200 forks source link

Error upon marking article as unread #797

Open keikhcheung opened 4 months ago

keikhcheung commented 4 months ago

1. Environment

Error report:

Version: 0.10.1
Device: Google Pixel 6a
System: Android 14 (API 34)

Stack trace: 

java.net.SocketTimeoutException: timeout
    at okhttp3.internal.http2.Http2Stream$StreamTimeout.newTimeoutException(Http2Stream.kt:5)
    at okhttp3.internal.http2.Http2Stream$StreamTimeout.exitAndThrowIfTimedOut(Http2Stream.kt:9)
    at okhttp3.internal.http2.Http2ExchangeCodec.readResponseHeaders(Http2ExchangeCodec.kt:58)
    at okhttp3.internal.connection.Exchange.readResponseHeaders(Exchange.kt:3)
    at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:252)
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:126)
    at me.ash.reader.infrastructure.di.UserAgentInterceptor.intercept(OkHttpClientModule.kt:26)
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:126)
    at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:132)
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:126)
    at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:1015)
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:126)
    at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:139)
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:126)
    at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:174)
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:126)
    at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:96)
    at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:48)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
    at java.lang.Thread.run(Thread.java:1012)
    Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@1a1acdf, Dispatchers.IO]

2. Describe the bug

I was reading an article, then going back to All and swiping it towards the right to mark it as unread. The error popped up.

keikhcheung commented 4 months ago

Actually this has nothing to do particularly with marking an article unread. I was just reading normally today and it happened again with the same error.

I suspect this has something to do with FreshRSS sync on Read You because I sometimes get a toast message saying synchronisation has failed (something like ‘unable to resolve host’), even when I am just on my Android home screen and not opening Read You.

This maybe related to #623.