Anthony
01/30/2025, 9:58 AMParent Job is Completed error
.
My project is a server, where I use ktor as a server for routing, and as a client to make calls.
So sometimes the http calls are in 200 but I get a Parent Job is Completed exception.
The httpClient is injected into the api classes by koin
Do you know where this might be coming from?Anthony
01/30/2025, 9:59 AMopen suspend fun updateArticle(id: kotlin.String, articleUpdateDto: ArticleUpdateDto): HttpResponse {
val body = articleUpdateDto
return client.request {
method = HttpMethod.Put
url {
path("/v1/articles/{id}".replace("{" + "id" + "}", "$id"))
}
headers {
}
setBody(body)
}
}
Aleksei Tirman [JB]
01/30/2025, 11:42 AMAnthony
02/06/2025, 2:56 PM