pnxtech / hydra-express

A module which wraps Hydra and ExpressJS into a library for building distributed applications - such as microservices
MIT License
184 stars 38 forks source link

body-parser not usable #84

Closed lfroe closed 7 years ago

lfroe commented 7 years ago

I'm currently having problems with the use of body-parser, because I'm trying to upload some files that are ~1MB. Because of the fact, that the bodyParser (specifically the json-parser) is initialized with its default values in the index.js file, the allowed request size is always the default (which is 100KB) and therefore I keep getting "Request Entity Too Large"-Errors. There doesn't seem to be any way to reset this limit inside my own code. Has anyone had this issue before?

In my opinion, a solution for this issue could be to add the body-parser config parameters to the config.json-file and then take them from there (if present).

Please let me know your thoughts on this.

lfroe commented 7 years ago

covered in https://github.com/flywheelsports/hydra-express/pull/85