Comments (3)
I had same error but quite often when I deploy : in my case this problem crashed nodered for uncaught exception
[info] [MSSQL-CN:Virtual] Error connecting to server : XXXXXXXX, database : YYYYYYYY, port : ZZZZ, user : KKKKKKKKK
[info] [MSSQL] TypeError: Cannot read properties of undefined (reading 'on')
[red] Uncaught Exception:
[error] ConnectionError: Connection not yet open.
at ConnectionPool._acquire (S:.node-red\node_modules\mssql\lib\base\connection-pool.js:380:36)
at ConnectionPool.acquire (S:.node-red\node_modules\mssql\lib\base\connection-pool.js:366:56)
at Immediate. (S:.node-red\node_modules\mssql\lib\tedious\request.js:419:19)
at process.processImmediate (node:internal/timers:476:21)
I use nodered 3.1.0 on windows 2012 R2 server x64
node-red-contrib-mssql-plus is at version 0.12.1
mssql 10.0.1
node.js 18.18.2
from node-red-contrib-mssql-plus.
Going deeper to the problem, I discover that in my case the problem was originitade in this line
node-red-contrib-mssql-plus/src/mssql.js
Line 440 in 64f78f4
In this link there is the function that is called (if I am not wrong) https://github.com/tediousjs/node-mssql/blob/ac350e44c143adc9fbb04b9cddca221746308dd4/lib/base/connection-pool.js#L606
In my case arguments[0] === 'string'
from node-red-contrib-mssql-plus.
I have added a pull request (tediousjs/node-mssql#1592) to fix this problem
from node-red-contrib-mssql-plus.
Related Issues (20)
- Feature request: Allow variable server IP and Passwords HOT 3
- Feature request: automatic retry on error
- Additional Authentication Methods for Azure SQL HOT 3
- Bulk Insert random insertion on the table
- Instance Name HOT 2
- Multiple queries doesn't show multiple record set
- Does not install with nodejs 20 (@azure/msal-node issue) HOT 7
- SQL Server 2022 HOT 1
- Bulk insert does not work. HOT 11
- I would need "ApplicationIntent=ReadOnly" in the SQL connection string HOT 3
- Environment variables do not appear to be working ? HOT 1
- Support for Node.js 20 HOT 2
- bigint being returned as a string HOT 1
- Node red crashed due to an sql error
- Version 0.12.1 suddenly becomes dependent on @azure/core-rest-pipeline Version 1.13.0 which breaks on latest NodeRED HOT 3
- Uncaught Exception while stopping flows (during deploy) HOT 1
- Expected minimum version of Node (>=18) should be reflected in package.json (>=12). HOT 3
- Older SQL Node are not properly configured HOT 12
- Azure AD authentication
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-red-contrib-mssql-plus.