Friday, 10 February 2017

Nodejs, Error: request entity too large


Error: request entity too large

    at makeError (/Users/xx/Documents/dev/code/xxxxxx/node_modules/body-parser/node_modules/raw-body/index.js:184:15)




if you see above issue.

Solution:

find your bodyParser importing and creating place and put below code in :


app.use(bodyParser.json({limit: '8mb'}));
app.use(bodyParser.urlencoded({limit: '8mb'}));

No comments:

Post a comment