Colton Idle
11/13/2023, 3:36 PMNon-fatal Exception: java.io.IOException: canceled due to retrofit2. HttpException: HTTP 503
at okhttp3. internal.connection. RealCall$AsyncCall. run (RealCall. kt : 530)
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)
but im confused on how to take anything actionable from that. There's literally no other information. Is there someway to update the app so that I can get a stacktrace to a callsite in the app code?efemoney
11/13/2023, 4:37 PMInvocation
tags, so that you can just write an interceptor that’ll pull it out from the request tag & rewrite the Response.message
of all failed requests with that informationalex.krupa
11/13/2023, 5:58 PMColton Idle
11/13/2023, 6:05 PMFatal Exception: retrofit2.HttpException: HTTP 503
at retrofit2.KotlinExtensionsSawait$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: 1145)
at java. util. concurrent. ThreadPoolExecutor$Worker.run(ThreadPoolExecutor. java:644)
at java. lang. Thread. run (Thread. java:1012)
alex.krupa
11/13/2023, 7:01 PMCallAdapter
.
Since these are 503 — maybe you could investigate these from the backend side (assuming it's developed at your company)?Colton Idle
11/13/2023, 7:34 PMPablichjenkov
11/13/2023, 7:39 PMColton Idle
11/13/2023, 9:08 PMPablichjenkov
11/14/2023, 5:37 AMokhttp
, it doesn’t get caught in your code because is out of your hands. It seems to be initiated on okhttp side and you have no control of it. What version of okhttp
is the project using?
You can try asking in squarelibraries
efemoney
11/14/2023, 1:04 PMDispatcher
to your okhttp builder that allows you to configure the thread where the Call is run.Colton Idle
11/14/2023, 2:14 PMPablichjenkov
11/14/2023, 2:24 PMefemoney
11/14/2023, 2:25 PM