Open ghost opened 6 years ago
do we have any support to maintain this library?
Hi. In my app, the requestConfig works well. I use ver 3.1.0.
The requestConfig.timeout seems to the timeout value from the time to send the request to the time to get the response header. If your target server is down, you get error event of ETIMEDOUT.
You can test the requestConfig.timeout by using nock. Nock can delay the response header by using delay method.
Hello,
I also have this issue. But only on Windows ! If you set a timeout of e.g. 2 sec, it will never honour this timeout. It will always fail around 20 sec. and not within the 2 sec. I also think that this has to do with some issues of the (old) request libs in node, I also have read some problems with this timeout issues...
Is there any work/maintenance on this node-rest-client ? or is it a dead project ?
Please help me to review the config of requestConfig.
Seem the function set timeout not work? When I debug , it's go to break point at function " request.on('error', function (err) " and throw error
not go to break point of function "request.on('requestTimeout')"