node.js Global connection already exists. Call sql.close() first

前端 未结 6 1572
暗喜
暗喜 2021-01-03 23:09

I\'m trying to create web services using node.js from an sql server database,in the frontend when i call those 2 webservices simultaneously it throws an error Global connect

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-03 23:59

    if this problem still bother you, then change the core api. go to node_modules\mssql\lib\base.js at line 1723, add below code before if condition globalConnection = null

提交回复
热议问题