Ktor client throws JobCancellationException: Parent job is Completed when using compression and logging features
See original GitHub issueKtor Version and Engine Used (client or server and name) io.ktor:ktor-client-core-jvm:1.3.2 io.ktor:ktor-client-json-jvm:1.3.2 io.ktor:ktor-client-apache:1.3.1" io.ktor:ktor-client-encoding-jvm:1.3.2 io.ktor:ktor-client-features:1.3.2 io.ktor:ktor-client-serialization-jvm:1.3.2 io.ktor:ktor-client-auth-jvm:1.3.2 io.ktor:ktor-client-logging-jvm:1.3.2
Describe the bug
When using the gzip compression feature together
with the logging feature (with LogLevel.ALL
) the client fails with the
kotlinx.coroutines.JobCancellationException: Parent job is Completed
exception.
To Reproduce
Get ktorGzipTest repository and run log_all_with_gzip
test. See also readme in the repo for more details.
Expected behavior The httpClient call ends successfully even when using gzip together with logging all details.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:9 (5 by maintainers)
Top GitHub Comments
Could you file a new issue for this bug?
Hey @avently, the fix is done, but it is not released yet. There is a workaround: You can use: