Reputation: 6263
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:
The thing is:
backend is working properly (It ends after a while and I'm currently saving everything on a file to get my result)
i turned off the SLL toggle
there's no proxy
last but not least, timeout is set to 0 which should be infinity.
any suggestion?
Upvotes: 1
Views: 4504
Reputation: 6263
After further investigation, (thanks @Mykola Borysyuk), i can confirm the request send the timeout event after 2 minutes.
It was enough to add the following line to my route:
req.setTimeout(300000);
Upvotes: 1