Closed jittya closed 4 years ago
I have been able to repro this same behavior utilizing CIO and Apache engines as well.
setting level = LogLevel.ALL and BODY is the issue. as a workaround change LogLevel to other than ALL or BODY
This is still occurring when using from a JVM app with the Apache engine, even with the logging work around.
The ticket is a duplicate of https://github.com/ktorio/ktor/issues/1780
Closed
Ktor Version and Engine Used (client or server and name) 1.3.2, client(OkHttp), additional ktor modules included (client-core, client-logging, client-encoding)
Describe the bug When configuring ContentEncoding { gzip() } in Okhttp client http call is failing
To Reproduce Steps to reproduce the behavior:
Write the following val client = HttpClient(OkHttp) {
} GlobalScope.apply { launch(Dispatchers.Default) { val result: String = client.get { url(Url("http://148.151.131.221:7200/api/Mobility/GetAvailableRoles")) } println(result) client.close() } }