I have a simple node.js app that can't connect to a SQL Db.
Web server is Azure Web App, running node.js and using Tedious for SQL. DB is Azure SQL Database.
This is the detailed error:
{ message: 'Failed to connect to xxx.database.windows.net:1433 - undefined', code: 'ESOCKET' }
Thu Jan 14 2016 08:05:05 GMT+0000 (Coordinated Universal Time): Unaught exception: ConnectionError: Connection lost - connect EADDRNOTAVAIL at Connection. (D:\home\site\api\node_modules\tedious\lib\connection.js:797:26) at Socket. (D:\home\site\api\node_modules\tedious\lib\connection.js:33:15) at Socket.emit (events.js:88:20) at Array.1 (net.js:301:14) at EventEmitter._tickCallback (node.js:190:38)
It works on my machine, and the funny thing is that is also works on another Azure Web App! I tried restarting this web app and what not... What's this error means?