今天使用测试接口的时候,报了一个413错误

chunk-libs.0d7f7ccf.js:11 Uncaught (in promise) Error: Request failed with status code 413 at e.exports (chunk-libs.0d7f7ccf.js:11)

经查,413的错误码是表示:请求实体太大。

解决办法:

因为我使用的nginx,所以在nginx中 http模块中加入以下内容

client_max_body_size 100M;  # 设置请求体缓存区大小
client_body_buffer_size 128k; # 设置客户端请求体最大值


接口访问出现413错误应该如何解决呢?_nginx

nginx参考配置图