I am getting “<io.ktor.utils.io>.charsets.Malforme...
# ktor
I am getting “io.ktor.utils.io.charsets.MalformedInputException: Input length = 1” from client when api returns 400 and “{}” instead of a responseException. New to ktor so I might be configuring the client incorrectly
Copy code
adding the encoding dependency and install this feature fixed the issue for me. Still not quite sure why it was needed in the even of this particular response, but that seems like an issue with the api I am calling
Could you please post a full response (headers + body) from the server here?