Files
Matt GodboltandClaude ff7bccc574 Fix JSON parsing error in client state handling
Resolves COMPILER-EXPLORER-E53: SyntaxError: Unexpected end of JSON input

Root cause: The extractJsonFromBufferAndInflateIfRequired function and
unstoredStateHandler were not properly handling malformed base64 data
or corrupted JSON, leading to uncaught SyntaxError exceptions.

Changes:
- Add proper error handling for base64 decoding failures
- Add robust error handling to extractJsonFromBufferAndInflateIfRequired
- Validate JSON string is not empty before parsing
- Use debug logging instead of warn since this is user error
- Remove Sentry capture for user-caused malformed URLs
- Return 400 Bad Request for invalid client state instead of 500 Internal Server Error

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-07 09:19:27 -05:00
..
2024-04-22 20:01:30 +02:00
2025-05-30 07:17:01 -05:00
2025-02-26 11:11:12 -06:00
2025-02-25 13:05:50 -06:00
2025-02-26 10:56:26 -06:00