上传大数据文件,测试环境前端报net::ERR_FAILED错误,测试环境使用的nginx
net::ERR_FAILED具体使用postman调用远程发现其实返回的是504 Gateway Time-out因为sit环境配置了nginx,所以查找发现修改nginx参数即可。在http{}片段下添加如下配置:单位秒proxy_connect_timeout600;proxy_send_timeout600;proxy_read_timeout600;send_timeout600;还是超
·
本地不报,测试环境报错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
更多推荐
所有评论(0)