This is a painfully familiar problem to anyone working with async APIs: when your call encounters a failure, the async library\'s private thread detects it, creates an exception
Just found a github issue related to this:
Stacktrace recovery ( https://github.com/Kotlin/kotlinx.coroutines/pull/792 ) and the related doc ( https://github.com/Kotlin/kotlinx.coroutines/blob/master/docs/debugging.md )
Without the caller site stacktrace, coroutine debugging is indeed painful. Hope that the "debug mode" can help. Will try and see.