https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
m

Maurice Jouvet

09/10/2020, 7:38 AM
I have this error on iOS when I'm calling my suspend KTOR functions.
Copy code
Uncaught Kotlin exception: kotlinx.coroutines.CoroutinesInternalError: Fatal exception in coroutines machinery for DispatchedContinuation[WorkerCoroutineDispatcherImpl@1364278, Continuation @ $split$lambda-0$<anonymous>_3COROUTINE$2]. Please read KDoc to 'handleFatalException' method and report this incident to maintainers
HttpClient: RESPONSE <https://app.bluekango.com/mobile/app/login> failed with exception:
kotlin.native.concurrent.InvalidMutabilityException: mutation attempt of frozen kotlinx.coroutines.AwaitAll.AwaitAllNode@3eeba78
I have done some research and found that there are some issues with Ktor/Coroutines, but I don't know what can I do to avoid this issue..? I tried to retrograde my version (not working with my current project) and I'am already using the specific agent engine for iOS or Android. But not working. Link: https://github.com/ktorio/ktor/issues/1550
v

Vinod Rai

09/10/2020, 7:46 AM
Hey, use coroutine native-mt and if you are using ktor logging feature disable it. It has some issue in LogLevel.All & LogLevel.Body.
m

Maurice Jouvet

09/10/2020, 7:57 AM
Thanks a lot!!!! It's the logging feature that was the issue!!!! You save my day!!!
3 Views