本地不报,测试环境报错net::ERR_FAILED,然后使用postman调用测试环境发现其实返回的是504 Gateway Time-out
因为测试环境配置了nginx,所以查找发现修改nginx参数即可。
在http{}片段下添加如下配置:单位秒
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
还是超时修改以下配置项:
sendfile on; 上传加速
keepalive_timeout 1800; 默认链接时间是65s
转载
https://www.cnblogs.com/hz0356/p/9767895.html