Instance in the host return an error when you have only one customed instance on PC
Hello,
Actualy i'm working on a project, using Node.js and SQL Server 2019, after i have install node-mssql on my home PC everything working fine, Note : On My Home PC i have many SQL Server Instance : MSSQLSERVER2014 .... to .... MSSQLSERVER2019 But after i try to deploy my production on a VPS that containing only one instance named MSSQLSERVER2019, i got the following error, (My host was : localhost\MSSQLSERVER2019)
I have fix that by removing MSSQLSERVER2019 FROM the host, that's strange and i don't know why, because my other application buit with ASP.NET Core have the (localhost\MSSQLSERVER2019) host.
i don't know exactly if it is a bug,
Thx
ConnectionError: Failed to connect to localhost\MSSQLSERVER2019 in 15000ms
at Connection.<anonymous> (C:\Web Site Deploy\Live Streaming Server\node_modules\mssql\lib\tedious\connection-pool.js:68:17)
at Object.onceWrapper (events.js:417:26)
at Connection.emit (events.js:310:20)
at Connection.connectTimeout (C:\Web Site Deploy\Live Streaming Server\node_modules\tedious\lib\connection.js:1195:10)
at Timeout._onTimeout (C:\Web Site Deploy\Live Streaming Server\node_modules\tedious\lib\connection.js:1157:12)
at listOnTimeout (internal/timers.js:549:17)
at processTimers (internal/timers.js:492:7) {
code: 'ETIMEOUT',
originalError: ConnectionError: Failed to connect to localhost\MSSQLSERVER2019 in 15000ms
at ConnectionError (C:\Web Site Deploy\Live Streaming Server\node_modules\tedious\lib\errors.js:13:12)
at Connection.connectTimeout (C:\Web Site Deploy\Live Streaming Server\node_modules\tedious\lib\connection.js:1195:54)
at Timeout._onTimeout (C:\Web Site Deploy\Live Streaming Server\node_modules\tedious\lib\connection.js:1157:12)
at listOnTimeout (internal/timers.js:549:17)
at processTimers (internal/timers.js:492:7) {
message: 'Failed to connect to localhost\\MSSQLSERVER2019 in 15000ms',
code: 'ETIMEOUT'
},
name: 'ConnectionError'
}
Please use the issue template.
This is a problem originating from the tedious driver - I suggest you query with that project