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

Christian Sousa

03/20/2020, 1:50 PM
Hello, when I’m doing a get, my code breaks with a 403. I tried to add:
Copy code
HttpClient{
        expectSuccess = false
        HttpResponseValidator {
            validateResponse { response ->
                println("RESP: $response")
            }
            handleResponseException { cause ->
                println("CAUSE: $cause")
            }}
        }
But my code doesnt even reach any of those, either the
validateResponse
nor the
handleResponseException
. With my other api calls, i can see them entering the
validateResponse
, but not the one that gives me a 403. Anyone can help?
👀 1
e

e5l

03/20/2020, 2:07 PM
Hi @Christian Sousa, could you file an issue? I’ll try to reproduce it first.