Skip to content

Webhooks page: bad JSON is a 400 and big bodies a 413 now (GRYT-1198) - #112

Merged
sivert-io merged 1 commit into
mainfrom
claude/GRYT-1198-webhook-body-errors
Sep 15, 2026
Merged

sivert-io merged 1 commit into
mainfrom
claude/GRYT-1198-webhook-body-errors

Conversation

@sivert-io

Copy link
Copy Markdown
Member

Vikunja: GRYT-1198. Follows Gryt-chat/server#188, which is merged.

The webhook send route used to answer malformed JSON, and any body over 2 MB, with 500 internal_error. Server#188 changed that to 400 invalid_json for bad JSON and 413 body_too_large over 256 KB, which is what the spec already promised for size.

  • src/components/webhooks/openapi.json is copied from server main, so test:webhook-spec passes again.
  • On /docs/build/webhooks, the error table gets both rows. The "Bad JSON and huge bodies" warning is now one line about older servers, and the unused Callout import is gone.
  • The rate limits section says bad JSON and bodies over 256 KB are refused before they're counted. That's how the route has always worked, and the page didn't say so.

Checked locally: yarn test:comment-length, yarn test:webhook-spec against the server branch, yarn build.

🤖 Generated with Claude Code

Server#188 made the send route answer malformed JSON with 400 invalid_json
and a body over 256 KB with 413 body_too_large. Until then both were 500s,
and the page warned about that.

The vendored openapi.json is copied from server main. The error table gets
both rows, and the warning becomes a line about older servers. Rate limits
now say those two are refused before they're counted.

Co-Authored-By: Claude Opus 5 <[email protected]>
@sivert-io
sivert-io merged commit f2e0add into main Sep 15, 2026
4 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.

1 participant