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

Luca Sas

03/07/2021, 1:36 PM
Hi, I noticed that
call.receive<Data>()
throws a
JsonDecodingException
instead of a
ContentTransformationException
if the data passed with the request doesnt match the data type i try to receive. Is this normal? What I want to do is use
StatusPage
to handle errors in my route handlers.
r

Rustam Siniukov

03/08/2021, 9:05 PM
hi! please file a bug in YT
l

Luca Sas

03/24/2021, 2:14 PM
@Rustam Siniukov hi, sorry for the late reply, I ended up filing a bug report on YT: https://youtrack.jetbrains.com/issue/KTOR-2366
👍 1