https://kotlinlang.org logo
#ktor
Title
# ktor
t

Thomas

08/12/2019, 1:00 PM
In my app some users get a timeout exception. This exception is not caught by my code. The stack trace shows no lines referencing my code so I have some difficulties finding the cause. I created an issue about this on GitHub (https://github.com/ktorio/ktor/issues/1263). Does anyone have any suggestions how I could approach this?
m

mbonnin

08/12/2019, 1:05 PM
We've had something similar without using ktor, just plain okhttp. IIRC they disappeared after we bumped the coroutines version. We've never got to the bottom of this issue but it's gone now 🤞
t

Thomas

08/12/2019, 1:11 PM
That’s great, but I am using the latest coroutines version already. So unfortunately that isn’t an easy fix for me
m

mbonnin

08/12/2019, 1:22 PM
Maybe try looking into coroutines debug ?
t

Thomas

08/12/2019, 1:22 PM
Already have that enabled 🙂
👍 1
The issue is that I have no idea where this happens in my code. I am unable to reproduce it myself so it is very difficult to fix crash. I am just guessing, but I think I might have forgotten a place to catch this exception, but cannot find it. Maybe its a bug in Ktor, I just don’t know. A more detailed stack trace would really help here.
4 Views