-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.3.0: requestTimeout in config is not passed to connection's config #392
Comments
I see the issue now: connectionTimeout and requestTimeout have to be passed in in a subobject called https://github.com/patriksimek/node-mssql/blame/master/README.md#L395 I don't see any mention of |
I had the same problem. I too think the subobject I didn't know how to execute heavy querys. Thanks to jcollum. |
This is strange, the |
i am running into this same issue, when i try to set requesttimeout > 15 seconds it will time out at the default. Anything less than 15 will work. using 3.3.0 |
I've tried both of the following and none address the When I break and inspect my request.connection.config.options.requestTimeout and connectTimeout objects, both still show 15000. If I add Also, -1 and Infinity don't work as expected even when I set the requestTimeout that way as I'd expect based on #157
|
v3.3.0 is very old and out of support. We haven't had reports of this in v4 and we are now running v5 (with v6 in alpha) so I'm closing this as outdated |
Code:
However when I stop on line that has
logger.debug("Connected.");
(3rd to last LOC from the bottom) I see this:Also the conn config options (forgot those in the screenshot):
It works fine, most of the time. But I have some fairly long running requests in this app, 5 minutes or more. Many of them are failing because the requestTimeout is too low.
I believe I am following the docs though and passing in the requestTimeout in the appropriate place.
(I've added an event listener for the 'error' event after spotting that section of the docs ;) )
The text was updated successfully, but these errors were encountered: