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

Joost Klitsie

10/14/2020, 8:44 AM
Hi all! Are there issues with the
HttpResponseValidator
on Javascript? Somehow, if I have this:
Copy code
HttpResponseValidator {
    validateResponse {
        check(it.status == HttpStatusCode.OK || it.status == HttpStatusCode.NoContent)
    }
    handleResponseException {
        println("Response exception")
    }
}
The handleResponseException is not called, until the coroutine it is launched in cancels. Also subsequent requests are hanging
Using ktor 1.4.1
4 Views