I am using request-promise library and trying to set the timeout as milliseconds as per their documentation. I have few requests on the server side that take more than a minute to response, no matter what value I set for timeout, the request always times out after a minute. What is the correct way to set read timeout in request?
My request
rp({
uri: "http://something.com/long_running_request",
timeout: 180000
})
Note that if the underlying TCP connection cannot be established, the OS-wide TCP connection timeout will overrule the timeout option
from the docs – Torey