Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

用的umi-request的请求库,类似axios。前端调用后端接口,由于后端需要调用第三方数据故需要耗时几分钟,但是防止前端出现超时已经将timeout设置为60分钟,但是还是会出现超时,请问大佬们这个怎么办。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
3.1k views
Welcome To Ask or Share your Answers For Others

1 Answer

chrome浏览器默认超时时间是5min好像。如果没超过5分钟的话,可能是nginx超时时间引起的,nginx默认超时时间好像是180s。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...