Fix "Unexpected end of JSON input" error by: - Check for empty/whitespace-only body before parsing - Return empty object for empty bodies instead of failing - Add detailed error logging for debugging JSON parse failures - Prevent crashes on malformed or empty request bodies 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
---|---|---|
.. | ||
app | ||
modules | ||
services | ||
storage | ||
utils | ||
main.ts | ||
types.ts |