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

MBegemot

07/09/2021, 4:38 PM
Copy code
java.lang.Exception: 
Exception -> java.lang.IllegalStateException Expected 8 bytes in the trailer. Actual: 7 $
   at io.ktor.util.EncodersJvmKt$inflate$1.invokeSuspend(EncodersJvm.kt:128)
   at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
   at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
   at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
   at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
   at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
   at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
I'm finding this error at random times, it happens when building up the body parameters in a POST with json. Unfortunately it only happens time to time but of course is annoying , the request is cancelled before being send to the server. (Since version 1.5.4) .
a

Aleksei Tirman [JB]

07/12/2021, 1:13 PM
Could you please try to reproduce it with Ktor 1.6.1?
m

MBegemot

07/12/2021, 2:57 PM
I'm indeed using 1.6.1, it's a random issue , For a while I've got the feeling that it disappeared with 1.6.1, but no it's there, time to time I'm sorry I can't be more precise .
2 Views