Skip to content

fix: Silent JSON parsing failures in SSE stream#38

Open
mrwind-up-bird wants to merge 1 commit intomainfrom
autofix/dd2853cd/silent-json-parsing-failures-i
Open

fix: Silent JSON parsing failures in SSE stream#38
mrwind-up-bird wants to merge 1 commit intomainfrom
autofix/dd2853cd/silent-json-parsing-failures-i

Conversation

@mrwind-up-bird
Copy link
Copy Markdown
Collaborator

AutoFix: Silent JSON parsing failures in SSE stream

Category: error-handling
Severity: medium

Issue

The SSE stream processing catches JSON parsing errors but silently ignores them with an empty catch block. This could hide legitimate parsing issues and make debugging stream problems difficult.

Fix

Replaced the silent catch block with proper error logging that captures the parse error and the malformed data string. This maintains the existing behavior of continuing stream processing while providing visibility into JSON parsing issues for debugging purposes.


Generated by nyxCore AutoFix

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.

1 participant