I have this error on iOS when I'm calling my suspe...
# multiplatform
m
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
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
Thanks a lot!!!! It's the logging feature that was the issue!!!! You save my day!!!