Skip to content

[client] Fix HttpClient support for reading empty stream #622

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 16, 2025

Conversation

rob-bygrave
Copy link
Contributor

The HttpClient uses the BodyHandlers.ofLines() but was not filtering out empty lines. These empty lines can fail the assigned body handler (e.g. json parsing error).

The fix is to filter out empty lines when reading the stream.

The HttpClient uses the BodyHandlers.ofLines() but was not filtering out empty lines.
These empty lines can fail the assigned body handler (e.g. json parsing error).

The fix is to filter out empty lines when reading the stream.
@SentryMan SentryMan merged commit 089c8f7 into master Jul 16, 2025
6 checks passed
@SentryMan SentryMan deleted the fix/client-stream-empty branch July 16, 2025 00:33
@SentryMan SentryMan added this to the 3.4 milestone Jul 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants