How can change default connectionTimeout from 15000ms to more?
I'm trying add connectionTimeout: 90000 to connection options but no way...
Thanks!
@ggazulla you can use options.connectTimeout property in connection config, refer http://tediousjs.github.io/tedious/api-connection.html
@v-suhame thanks for you reply.
I'm trying this but it doesn't work. In this API Docs. can't see how use the options.connectTimeout
let timeout = 90000
let config = {
user: data.db_username,
password: data.db_password,
server: data.hostname,
database: data.db_name,
options: {
connectionTimeout: timeout,
requestTimeout: timeout,
encrypt: false
}
}
Hey @ggazulla, it is connectTimeout and not connectionTimeout 馃槄 If you have used connectTimeout and still running into issue, can you share more details like the error stack, debug log and is this Azure Server?
@v-suhame Thanks you so much! it works! :)
Most helpful comment
Hey @ggazulla, it is
connectTimeoutand notconnectionTimeout馃槄 If you have usedconnectTimeoutand still running into issue, can you share more details like the error stack, debug log and is this Azure Server?