Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

Allow configuration of request entity size limit (or at least increase it in the interim) #75

Closed
kahmali opened this issue Nov 28, 2015 · 7 comments

Comments

@kahmali
Copy link
Collaborator

kahmali commented Nov 28, 2015

It appears that some of the connect middleware defined here is imposing a size limit on the request body that it will parse. If they have the same API as the Connect bodyParser we replaced there (and according to this SO answer, they do), the urlencoded and json parsers should accept an argument in the form connect.urlencoded({limit: '10mb'}). I would update this myself, but I'm swamped right now and don't have time to add the testing and update the docs and such. Sorry about that. A Restivus user recently reported an issue with it. I'll point them here for further discussion.

@snowping
Copy link

snowping commented Jan 6, 2016

I got the issue "Error: request entity too large" and I assume I need to increase the size limit of the request body. Is there any workaround yet or do I need to fork and tweak the sources?

Thanks

@ramzauchenna
Copy link

@kahmali any luck fixing this i also have the exact same issue and i use restivus awesome package

@ramzauchenna
Copy link

me too. This issue is a serious problem restivus users

@snowping
Copy link

In case anyone is interested I forked the package json-routes and hardcoded the limit to 50mb (quick and dirty fix). You can find the git project here: https://github.com/snowping/meteor.json-routes. If it solves your problem right away you can also add it using meteor add snowping:json-routes.

@stubailo
Copy link
Owner

@snowping if you submit a PR here I can update the real package.

@snowping
Copy link

@stubailo ok I made a pull request, it only increases the request size to 50mb (hardcoded).

@stubailo
Copy link
Owner

Done and published as json-routes 2.0.1!

Thanks for the PR!

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

No branches or pull requests

4 participants