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

maskipli

07/14/2021, 11:57 AM
i'm use ktor version 1.6.1 on KMM, for first time call API to Backend its ok, but for the second time is fail and error.
Copy code
failed with exception: kotlinx.coroutines.JobCancellationException: Parent job is Completed; job=JobImpl{Completed}
a

Aleksei Tirman [JB]

07/15/2021, 9:17 AM
Do you reuse a request builder object? If not, please share a code sample to reproduce your problem or create a YT issue.
t

Thomas

07/15/2021, 9:49 AM
Can a request builder not be reused?
a

Aleksei Tirman [JB]

07/15/2021, 9:51 AM
It can be but it has
executionContext
Job that could be completed (not active).
👍 1
4 Views