I am getting “<io.ktor.utils.io>.charsets.Malforme...
# ktor
h
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
install(ContentEncoding){
    gzip()
}
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
a
Could you please post a full response (headers + body) from the server here?