Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to increase Postman Client request timeout

Tags:

postman

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.

like image 242
Akshay Pingle Avatar asked Apr 01 '16 11:04

Akshay Pingle


People also ask

How do I increase my Postman request timeout?

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.

Why is Postman timing out?

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.

What is the max timeout REST API?

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.


2 Answers

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) enter image description here

like image 143
abyversin Avatar answered Sep 18 '22 22:09

abyversin


For POSTMAN client new version go to Settings-->General-->Request timeout in ms (0 for infinity)

enter image description here

like image 25
Stefano Avatar answered Sep 16 '22 22:09

Stefano