fd203138bf22924258f0161f76302d4ee968bd24
Every verb ended in an unconditional res.json(), which throws "Unexpected end of JSON input" on 201/204 responses that carry no body — so a request that actually succeeded still surfaced as an error (e.g. a sent chat message toasting a failure). Read text first and only parse when non-empty, otherwise resolve undefined. Non-empty JSON is unchanged. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Description
No description provided
42 MiB
Languages
TypeScript
90.9%
Shell
4.7%
JavaScript
4.1%
CSS
0.2%
HTML
0.1%