square/retrofit

I got one issue reported by Crashlytic.

Closed this issue · 0 comments

I got one issue reported by Crashlytic.

Fatal Exception: retrofit2.HttpException: HTTP 401 
       at retrofit2.KotlinExtensions$await$2$2.onResponse(KotlinExtensions.kt:53)
       at retrofit2.OkHttpCall$1.onResponse(OkHttpCall.java:161)
       at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
       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)

I handled the regular 401 code in an Intercepter, so I don't know how it could happen.
Does anyone know why and how to prevent that from happening again?
.

Originally posted by @658jjh in #3795