Error: request entity too large

后端 未结 21 3113
无人共我
无人共我 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

    In my case the problem was on Nginx configuration. To solve it I have to edit the file: /etc/nginx/nginx.conf and add this line inside server block:

    client_max_body_size 5M;
    

    Restart Nginx and the problems its gone

    sudo systemctl restart nginx
    

提交回复
热议问题