This message was deleted.
# ktor
s
This message was deleted.
l
@Aleksei Tirman [JB] I hope that you can help me with this issue
a
Could you please share a code snippet for the client and information about the service endpoint if it’s public?
l
Unfortunately, the service is not public. But here’s a snippet and what the service returns:
Copy code
HttpClient {
        install(ContentNegotiation) {
            jackson ()
        }
        expectSuccess = true
        defaultRequest {
            url(URL)
            contentType(ContentType.Application.Json)
        }
    }

suspend fun postRequest(requestBody: RequestBody): String =
    <http://httpClient.post|httpClient.post> {
        setBody(requestBody)
        header("Authorization", "Basic <token>")
    }.body()
The service returns something like this:
Copy code
{
  "value": "bb65bl98h4j65c95b8e65b8edb7y6ty8"
}
Nvm, fixed it using the ContentEncoding plugin. Thanks!