Fix chunked transfer encoding bug by switching from CIO to Java HTTP engine#41
Open
psiman-wandera wants to merge 1 commit into
Open
Fix chunked transfer encoding bug by switching from CIO to Java HTTP engine#41psiman-wandera wants to merge 1 commit into
psiman-wandera wants to merge 1 commit into
Conversation
…engine The Ktor CIO engine has a bug where it fails to parse chunked transfer encoding responses from the Argo Workflows API with: "TooLongLineException: Line exceeds limit of 0 characters" This occurs because the CIO engine's chunked decoder has an uninitialized line limit that defaults to 0. The fix switches to the Java HTTP engine which uses the built-in Java 11+ HttpClient that correctly handles chunked encoding. Changes: - Replace ktor-client-cio with ktor-client-java dependency - Update ArgoWorkflowsHttpClient to use Java engine - Adapt SSL/TLS configuration for Java engine API Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Author
|
Hi @IRus, can you please review this PR? |
Member
|
Hi @psiman-wandera, I'll test it today, thank you |
Member
|
I couldn't reproduce this issue, when exactly this issue happens? |
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Problem
The Ktor CIO engine fails to parse chunked transfer encoding responses from the Argo Workflows API with:
This occurs because the CIO engine's chunked decoder has an uninitialized line limit that defaults to 0, causing it to reject any response.
Solution
Switch from the CIO engine to the Java HTTP engine which uses the built-in Java 11+ HttpClient. The Java HttpClient correctly handles chunked transfer encoding.
Test plan
insecureSkipTlsVerifyoption🤖 Generated with Claude Code