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.
Settings -> general ->XHR Timeout(ms) Show activity on this post. Don't forget to specify timeout in milliseconds. Add 3 zeros if you want seconds.
It means the request you made to the web server is taking too much time as compared to the waiting time of the website's server. The request takes 40sec to reply. A 408 timeout means the server closed an idle connection.
The minimum is 1 millisecond and the maximum is 120 seconds. If the callout is timing out, please try and increase the timeout on the HTTP request to avoid that.
What version of postman do you use? In version 4.1.3 I have XHR Timeout(ms) which means :
Settings -> general ->XHR Timeout(ms)
For POSTMAN client new version go to Settings-->General-->Request timeout in ms (0 for infinity)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With