Robdll
Robdll

Reputation: 6263

Postman: couldn't get any response

I have a time consuming API route, and sometimes i need to run it locally.

I never have any problem when I'm on a fast connection, but when I' on some slower one the request goes on Timeout after a couple of minutes showing the following:

enter image description here

The thing is:

any suggestion?

Upvotes: 1

Views: 4504

Answers (1)

Robdll
Robdll

Reputation: 6263

After further investigation, (thanks @Mykola Borysyuk), i can confirm the request send the timeout event after 2 minutes.

server timeout doc

It was enough to add the following line to my route:

req.setTimeout(300000);

setTimeout doc

Upvotes: 1

Related Questions