Error: request entity too large

后端 未结 21 3157
无人共我
无人共我 2020-11-22 06:36

I\'m receiving the following error with express:

Error: request entity too large
    at module.exports (/Users/michaeljames/Documents/Projects/Proj/mean/node         


        
21条回答
  •  情话喂你
    2020-11-22 06:59

    for me following snippet solved the problem.

    var bodyParser = require('body-parser');
    app.use(bodyParser.json({limit: '50mb'})); 
    

提交回复
热议问题