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

Sending Error "request entity too large" #251

Closed
hong-yew opened this issue Jun 17, 2021 · 1 comment · Fixed by #330
Closed

Sending Error "request entity too large" #251

hong-yew opened this issue Jun 17, 2021 · 1 comment · Fixed by #330
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@hong-yew
Copy link

Posting a large JSON payload causes "request entity too large" error and there is no configuration to up this limit.

I believe the default body-parser for the JSON is 100k. There is an option to set a limit but it isn't exposed to the mocks-server user.

@javierbrea
Copy link
Member

Hi,
We could add a new option for setting the limit, as in:

module.exports = {
  options: {
    bodyParserJsonLimit: "50mb"
  }
}

@javierbrea javierbrea added the enhancement New feature or request label Jun 17, 2021
@javierbrea javierbrea transferred this issue from mocks-server/core Mar 28, 2022
@javierbrea javierbrea self-assigned this Apr 27, 2022
@javierbrea javierbrea added this to the 3.0.0 milestone May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants