Hi all. Trying out `ktor-client` in Android, and r...
# ktor
x
Hi all. Trying out
ktor-client
in Android, and running into this error whenever i’m trying to make any request
Copy code
kotlinx.coroutines.CoroutinesInternalError: Fatal exception in coroutines machinery for AwaitContinuation(DispatchedContinuation[Dispatchers.Main.immediate, Continuation at kotlinx.coroutines.DeferredCoroutine.await$suspendImpl(Builders.common.kt:101)@fcc4908]){Cancelled}@c6bb8a1. 
...
at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:465)
...
Caused by: java.lang.ClassCastException: kotlin.coroutines.jvm.internal.CompletedContinuation cannot be cast to kotlinx.coroutines.internal.DispatchedContinuation
...
at io.ktor.util.pipeline.SuspendFunctionGun.access$resumeRootWith(SuspendFunctionGun.kt:15)
Anyone got any clue as to what i’m doing wrong? I’m using Ktor
1.5.2
, with Android engine - along with kotlin
1.4.30
o
Nobody can help if you don't post any code. That said,
CoroutinesInternalError
indicates something has gone horribly wrong and you may have discovered a bug in the library. Please do create an issue. https://youtrack.jetbrains.com/issues/KTOR