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

Santosh Astagi

06/27/2019, 3:08 PM
We are getting a Bad Request response from the server(400), but ktor is not throwing an exception for it, throws for others like 500, 404 etc.
c

cy

06/27/2019, 3:10 PM
ktor client or ktor server?
s

Santosh Astagi

06/27/2019, 3:26 PM
Ktor client for networking in multi platform, using kotlinx serializer
c

cy

06/27/2019, 3:27 PM
Are you sure that the server generates a response with status code 400? I'd suspect that it generates 200 OK with "bad response" text inside
s

Santosh Astagi

06/27/2019, 3:39 PM
I see 400, I am sure, it serves an html page, the response is 400 for sure.
Backend is Scala you play framework, serving a 400 bad request.
This is a post request, does it matter?
Nvm, figured out, I was using Any for return type, which became a delegated response, filed a bug on that,
15 Views