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

anli

08/22/2019, 10:37 AM
On using ktor client and getting 409 I get ClientRequestException on attempt to read a body with
response.readText()
. On the other hand it is official recommendation for 409 response to get payload. How to get the payload with ktor?
d

Dominaezzz

08/22/2019, 10:46 AM
You can set
expectSuccess
to false in
HttpClient
or catch the exception and get the payload from it.
✔️ 1
2 Views