![]() ![]() nodemodules events.js: 183 throw er // Unhandled 'error' event Error: Cannot enqueue Quit after invoking quit. Radex Those blind solutions and water paste I will not translate. Event.js is not a part of my working files, probably is a file from. I’ve tried turning off the connection without using the.end() method, but it doesn’t work. ![]() This is the function I have inside my class:Īwait new Promise(async (resolve, reject) => query Query, es la consulta que se desea ejecutar. Everything worked fine at first, but when I executed the second query, I got this error: Cannot enqueue Handshake after invoking quit. It may be a n00b question.I'm trying with nodejs to make a loop to execute some queries and depending on if a record exists or not do one action or another (update or delete). quote from the node-mysql documentation. AWS Lambda/Nodejs is not executing mysql connection.query. What is the right way to close the Database connection (Mysql) using Node.js and written inside AWS lambda. Nodejs 12 Callback not working for mysql connection 0. 1278 Handle MySQL servers not closing TCP connection after QUIT -> OK exchange 1277 Minor SqlString. Npm mysql + AWS Lambda: Cannot enqueue Query after invoking quit. ![]() ![]() does it happen due to a 2nd query while processing the first) Also, log to file (node-red-contrib-flogger) the whole msg going in to the query - incase something odd is happening to trip it up. Handshake (options, callback) function mysql. In a real web application, you have to connect to the same database many times. What to do appropriately Create a connection window where you can request access many times. I used it once, so please destroy it properly. I put connection.end() as the last line of the code, everything works fine. end() before the callback is triggered, because Closing the connection is done using end() which makes sure all remaining queries are executed before sending a quit packet to the mysql server. Hi Dave, in your tests, try sending 2 or more queries in quick succession - see if that is tripping up the node (i.e. Error: Cannot enqueue Handshake after invoking quit. Database connection error: Error: Cannot enqueue Query after invoking quit. I’d like to know how I can fix that error on my project called “9106184”.Īt tupListenHandle (net.js:1346:14)Īt Function.listen (/rbd/pnpm-volume/7cf72968-cafa-4016-bcfb-73ecc5a2a533/node_modules/./express/4.16.3/node_modules/express/lib/application.js:618:24)Īt Module._compile (internal/modules/cjs/loader.js:654:30)Īt Object.Module._extensions…js (internal/modules/cjs/loader.js:665:10)Īt Module.load (internal/modules/cjs/loader.js:566:32)Īt tryModuleLoad (internal/modules/cjs/loader.js:506:12)Īt Function.Module._load (internal/modules/cjs/loader.js:498:3)Īt process._tickCallback (internal/process/next_tick.js:178:19)Īt (internal/modules/cjs/loader.js:697:11)Īt startup (internal/bootstrap/node.js:201:19)Īt bootstrapNodeJSCore (internal/bootstrap/node.js:516:3) robertklep If you had taken the time to browse the documentation before making wrong assumptions, you would have noticed that you may call. Hi gayanhewa I cant help you if you dont specify what exactly the failure is plus, which version of node you use and a log from a run in the verbose mode (-v). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |