本地不报,测试环境报错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

Logo

永洪科技,致力于打造全球领先的数据技术厂商,具备从数据应用方案咨询、BI、AIGC智能分析、数字孪生、数据资产、数据治理、数据实施的端到端大数据价值服务能力。

更多推荐