Skip to content

Fix webhook JSON body parsing#89

Merged
ralyodio merged 2 commits into
profullstack:masterfrom
Autowebassat-blip:fix-86-webhook-request-json
Jun 14, 2026
Merged

Fix webhook JSON body parsing#89
ralyodio merged 2 commits into
profullstack:masterfrom
Autowebassat-blip:fix-86-webhook-request-json

Conversation

@Autowebassat-blip

Copy link
Copy Markdown
Contributor

Fixes #86.

The authenticated POST /api/webhooks handler receives an event object from withAuth, but the JSON parser was reading from an undefined request variable. That made valid JSON requests fall into the Invalid JSON catch path.

This changes the parser to read event.request.json(), matching the middleware contract.

Tests:

  • git diff --check
  • full test runner not run locally: pnpm is not available in PATH

@ralyodio ralyodio merged commit 365c8a3 into profullstack:master Jun 14, 2026
8 checks passed
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.

POST /api/webhooks rejects valid JSON because request is undefined in withAuth handler

2 participants