Skip to content

Conversation

@mharrisb1
Copy link
Owner

Summary

  • Add proper error handling for JSON decode errors and validation errors when parsing server responses
  • Falls back to response text when JSON parsing fails
  • Uses generic error message for validation failures
  • Add comprehensive tests covering all error scenarios

Test plan

  • Test valid JSON error responses
  • Test invalid JSON responses (fallback to response text)
  • Test validation errors (fallback to generic message)
  • Test empty responses
  • Test malformed JSON responses
  • All tests passing

🤖 Generated with Claude Code

mharrisb1 and others added 2 commits July 10, 2025 15:37
Add proper error handling for JSON decode errors and validation errors
when parsing server responses. Falls back to response text when JSON
parsing fails and uses generic error message for validation failures.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Add tests covering various error scenarios:
- Valid JSON error responses
- Invalid JSON responses (fallback to response text)
- Validation errors (fallback to generic message)
- Empty responses
- Malformed JSON responses

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@mharrisb1 mharrisb1 merged commit b27802f into main Jul 10, 2025
@mharrisb1 mharrisb1 deleted the fix/invalid-error-response-from-server branch July 10, 2025 21:53
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.

2 participants