vercel / vercel/fun

Large request body(>4.5 MB) giving AWS error code (>6 MB)

Open
#84 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1k
Forks
44
Avg merge
1d 59m
Merged PRs (30d)
3

Description

Looking through the Vercel serverless function limitations:
https://vercel.com/docs/concepts/limits/overview#serverless-function-payload-size-limit
The body size limit is shown to be 4.5 MB. I have verified this limit through basic testing as well.

However, the stacktrace for this error actually returns a message: Error: Body exceeded 6mb limit.
6 MB is the request body size limit for AWS lambda calls.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing a request body above 4.5 MB in the local serverless function runtime and trace where the Body exceeded 6mb limit message is produced. Confirm the expected Vercel payload limit from the linked documentation and define done as the runtime reporting behavior consistent with that limit, with a regression test if the existing test structure is found.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.