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

Nikolay Kasyanov

02/15/2021, 8:23 AM
Hey folks. I stumbled upon this the hard way: https://github.com/ktorio/ktor/blob/1.4.3/ktor-client/ktor-client-core/common/src/io/ktor/client/features/DefaultResponseValidation.kt. Is there a good rationale behind making ktor response exceptions essentially inaccessible from other threads on iOS?
Can’t responses be frozen?
would it be possible to just use some placeholder message if response isn’t accsessible when the
request
property is read?
never mind, it’s not just exception message, but also the response object itself.
I’d say it’s a pretty harsh limitation 😬
2 Views