如何增加 Postman 客户端请求超时客户端、Postman

2023-09-07 11:01:04 作者:昵称终究要被备注代替,

我向邮递员请求 API 并在 2 分钟后得到响应,这很好,因为业务逻辑很复杂.但问题是邮递员给了

502 网关错误

HTTP请求超时,到底发生了什么

之后,我检查了业务逻辑,发现它执行成功,没有任何错误.

所以我关心的是如何增加请求时间.

解决方案

你用的是什么版本的邮递员?在版本

I am requesting an API from postman and getting response after 2 minutes, which is fine because the business logic is complex. But the problem is that postman is giving

502 Bad Gateway

After that, I checked the business logic and found that it successfully executed without any error.

So my concern is how to increase the request time.

解决方案

What version of postman do you use? In version 4.1.3 I have XHR Timeout(ms) which means :

Set how long the app should wait for a response before saying that the server isn't responding.

Settings -> general ->XHR Timeout(ms)