André Martins
04/14/2022, 9:07 AMjava.io.EOFException: Failed to parse HTTP response: unexpected EOF
Can’t seem to understand further what happened but from my understanding it seems like it tried to parse the response payload but there wasn’t any.java.io.EOFException: Failed to parse HTTP response: unexpected EOF
at io.ktor.client.engine.cio.UtilsKt.readResponse(utils.kt:116)
at i.k.c.engine.cio.UtilsKt$readResponse$1.invokeSuspend(utils.kt)
at k.c.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at k.c.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at k.c.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at k.c.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at k.c.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
Aleksei Tirman [JB]
04/14/2022, 10:19 AMAndré Martins
04/14/2022, 10:50 AMCsabi Szenczi
05/10/2023, 8:33 AMAleksei Tirman [JB]
05/10/2023, 9:51 AMHttpRequestRetry
plugin is installed or the OkHttp
engine is used. Can you share a code snippet to reproduce the retry on EOF exception?Csabi Szenczi
05/10/2023, 9:54 AMHttpResponseValidator {
handleResponseExceptionWithRequest { cause, _ ->
if (cause !is ResponseException) return@handleResponseExceptionWithRequest
val exceptionResponse = cause.response
when (exceptionResponse.status) {
...
...
Aleksei Tirman [JB]
05/10/2023, 10:14 AM