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

napperley

02/08/2019, 12:33 AM
Is there any way to get a more helpful error message from the Ktor Client (using Gson as the JSON serializer)? End up with this confusing error: Fail to run receive pipeline 😕
The server returns the following response body (application/json) when using Postman:
Copy code
[
  "Joe Bloggs",
  "Jane Doe"
]
Would the missing curly braces cause the Ktor Client to throw a exception?
Is there a option to turn off strict checking of JSON responses with the Ktor Client?
Turns out I used the wrong HTTP method (used a POST instead of a GET).