-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ECONNCLOSED: Connection is closed - Concurrent SQL connections result in first succeeding and all other failing #59
Comments
Can you provide a demo flow and / or screenshots explaining what the issues are? The old MSSQL node and this may not be 100% compatible (due to bug fixes, underlying library updates and new features) so it may be you simply need to tweak a setting. What I can say is multiple queries are definitely supported so perhaps there is a bug (or misconfiguration). Please provide additional feedback. |
This is the simplest example with the server names removed, no other alterations. It seems to succeed top to bottom, if I disconnect the top SQL query the next one functions and so on. Edit: Sorry, I assumed selecting code block would avoid wall of text. - EDIT2: Fixed code block |
Not sure what screenshots would be most helpful but this is the flow sample above whne ran. |
I was mistaken, the older server is still available and I can now see we were not using the older node-red-contrib-mssql but an old version of node-red-contrib-mssql-plus v0.4.0 and node-red was 0.20.5 We have been using these versions for about 4 years I think. |
So, you are trying to run concurrent queries - while this could/should work (I will look into this later), it is not the ideal composition. There are 2 approaches i would take on this
Here is an example of doing multiple queries in one flow...
|
Hmm, that nice-ified it but still massive scroll space. EDIT: Scrap that, i realised it was because it had inherited formatting at some point. Thanks for that.
As I mentioned the older version of this node seem to have no problems with it but it was an incredibly old version so we have definitely lost something along the way. I had another thought after a bit that with the rebuild we have also brought the node-js install up to date as well so wondered if it was a possible change within the platform that has trickled down. I've already started on putting the requests in sequence as needs-must and we rely on the reporting. The original reasoning against putting them all in one request was that we wanted to enable or disable certain tables easily but I do prefer it for it's tidyness myself. Thanks. |
Hi, I have the same issue with the lastest version. But i can't but all my query in the same request. |
Recently forced to move from age old node-red install version (think 0.something) and node-red-contrib-mssql.
Flows imported fine but with node-red-contrib-mssql no longer maintained (deleted?) we have moved to node-red-contrib-mssql-plus. Now we see where concurrent table reads/writes work in the older Node they fail in mssql-plus.
A few of our flows for example read from multiple tables in a single DB, then join the results for an external report or email.
The text was updated successfully, but these errors were encountered: