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>