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

Discussion - PayloadTooLargeError: request entity too large #40

Closed
huygn opened this issue May 19, 2018 · 3 comments
Closed

Discussion - PayloadTooLargeError: request entity too large #40

huygn opened this issue May 19, 2018 · 3 comments

Comments

@huygn
Copy link

huygn commented May 19, 2018

Got this error when testing my function locally by sending a ~160kb POST request. This error doesn't happen when deployed on Netlify functions though.

This is due to express server with it's default limit and could be altered via middlewares. Could we allow express middlewares from netlify-lambda users via netlify-lambda-serve.js or similar mechanism for flexibilities?

@swyxio
Copy link
Contributor

swyxio commented Oct 11, 2018

sounds reasonable, but will not have bandwidth to work on this for the time being - keeping this issue open until we can address this

@8eecf0d2
Copy link
Contributor

Afaict this is a non issue, adding a netlify-lambda-serve.js feature would not align at all with the Netlify Functions service and only fragment development / production further.

The original body size limit issue was resolved with #31.

@swyxio
Copy link
Contributor

swyxio commented Oct 18, 2018

thanks for the second opinion Brod. think im just gonna close this for now.

@swyxio swyxio closed this as completed Oct 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants