Skip to content

fix(backend): raise /graphql body limit to 1mb (ARG-449)#2343

Merged
gregberge merged 1 commit into
mainfrom
greg/arg-449-fix-content-too-large-issue
Jul 8, 2026
Merged

fix(backend): raise /graphql body limit to 1mb (ARG-449)#2343
gregberge merged 1 commit into
mainfrom
greg/arg-449-fix-content-too-large-issue

Conversation

@gregberge

Copy link
Copy Markdown
Member

Problem

The /graphql route parsed request bodies with express.json() using the default 100 kB limit. Legitimate large requests (big mutations / large variables payloads) were rejected with a 413 "Payload Too Large" error thrown by express.json() before the request even reached Apollo.

Fix

Raise the limit to 1mb:

express.json({ limit: "1mb" })

Related: #2342 ensures any remaining 413s are reported to Sentry at error level.

🤖 Generated with Claude Code

`express.json()` used the default 100kb limit on the /graphql route,
causing legitimate large requests to be rejected with 413 "Payload Too
Large". Bump the limit to 1mb.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@linear-code

linear-code Bot commented Jul 8, 2026

Copy link
Copy Markdown

ARG-449

@argos-ci

argos-ci Bot commented Jul 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
argos/default (Inspect) ✅ No changes detected - Jul 8, 2026, 3:40 PM
storybook/default (Inspect) ✅ No changes detected - Jul 8, 2026, 3:39 PM
Deployment Status Branch Updated (UTC)
storybook/preview (Open) Ready greg/arg-449-fix-content-too-large-issue Jul 8, 2026, 3:39 PM

@gregberge gregberge enabled auto-merge (squash) July 8, 2026 15:39
@gregberge gregberge merged commit 5d134ed into main Jul 8, 2026
14 checks passed
@gregberge gregberge deleted the greg/arg-449-fix-content-too-large-issue branch July 8, 2026 15:41
@gregberge gregberge requested a review from jsfez July 8, 2026 15:43
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