-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
RequestError: Timeout: Request failed to complete in 15000ms #11035
Comments
@nash90:
|
@nash90 Does the above workaround work for you? |
@cbogwill |
@papb @Yaowenjie |
Thanks, This solution worked for mssql. |
By the way, that setting was in sequelize source code "lib/dialects/mssql/connection-manager.js" |
this is showing on my log using that format. |
I am using the mssql driver and my configuration - |
I tried using both of the dialectOptions to the configuration as below but still I face the same issue
|
@ashokkumarg |
For me in NodeJs with Mssql worked just this small change: const config = { |
Hello, anno 2021 I've got this working with the following code (I'm connecting to Azure, so I need encryption).
|
You need to hard code it
add the following to
by @nash90 |
This issue has been automatically marked as stale because it has been open for 14 days without activity. It will be closed if no further activity occurs within the next 14 days. If this is still an issue, just leave a comment or remove the "stale" label. 🙂 |
A lot of different methods thrown around here, so I figured I'd put out what actually worked for me.
Putting |
Issue: unable to set requestTimeout with configuration parameter for "mssql" dilect
No matter whatever value is in requestTimeout parameter, the driver sets default value of "15000ms".
Hence, Timeout error occurs for all query that takes longer than 15s.
Application log is as follows:
What are you doing?
sequelize is instantiated as follows where requestTimeout is set to 30s
A query that does full scan in a large table is run as follows:
To Reproduce
Steps to reproduce the behavior:
What do you expect to happen?
Not thow request timeout error for queries that run for 30s if sequelize is set to have requestTimeout of 30s.
What is actually happening?
Timeout Error for all query that takes longer than 15 s
Output, either JSON or SQL
Environment
Dialect:
Dialect library version: tedious 6.1.2
Database version: mcr.microsoft.com/mssql/server:2017-latest (docker)
Sequelize version: 5.8.7
Node Version: v12.3.1
OS: osx
If TypeScript related: TypeScript version: XXX
Tested with latest release:
Self investigation.
hard coded fix is to change the value of the following variable in "lib/connection.js" module of tedious library
const DEFAULT_CLIENT_REQUEST_TIMEOUT = 15 * 1000;
The text was updated successfully, but these errors were encountered: