Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Internal server error: Tool error: Error converting serde json to string. (Run ID: codestoryai_aide_issue_1331_1a9ce545) #1332

Open
wants to merge 1 commit into
base: cs-main
Choose a base branch
from

Conversation

theskcd
Copy link
Contributor

@theskcd theskcd commented Feb 20, 2025

agent_instance: codestoryai_aide_issue_1331_1a9ce545 Tries to fix: #1331

Fix: Resolved JSON parsing errors in streaming methods. This commit introduces a robust JSON parsing helper function and updates several streaming methods within the SideCarClient to handle malformed responses, double-encoded JSON, and improve error handling. Please review these changes.

The commit message focuses on the main change: adding safer JSON parsing functionality across multiple files to handle edge cases like BOM characters and extra whitespace, which could cause parsing errors.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Internal server error: Tool error: Error converting serde json to string.
1 participant