Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase body-parser limit to 32MB #6201

Closed
gustavopch opened this issue Jul 31, 2023 · 0 comments · Fixed by #6207
Closed

Increase body-parser limit to 32MB #6201

gustavopch opened this issue Jul 31, 2023 · 0 comments · Fixed by #6207
Assignees

Comments

@gustavopch
Copy link

Cloud Functions 2nd gen allow requests with sizes up to 32MB according to the docs:
image

The current limit in the emulator though is 10MB:

app.use(
bodyParser.json({
limit: "10mb",
verify: rawBodySaver,
})
);
app.use(
bodyParser.text({
limit: "10mb",
verify: rawBodySaver,
})
);
app.use(
bodyParser.urlencoded({
extended: true,
limit: "10mb",
verify: rawBodySaver,
})
);
app.use(
bodyParser.raw({
type: "*/*",
limit: "10mb",
verify: rawBodySaver,
})
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants