Untitled

 avatar
user_0509041
plain_text
16 days ago
2.5 kB
1
Indexable
Never
(node:6700) UnhandledPromiseRejectionWarning: ConnectionError: Cannot close a pool while it is connecting
    at ConnectionPool._close (C:\ServerNODE\node_modules\mssql\lib\base\connection-pool.js:302:30)
    at shared.Promise (C:\ServerNODE\node_modules\mssql\lib\base\connection-pool.js:285:12)
    at new Promise (<anonymous>)
    at ConnectionPool.close (C:\ServerNODE\node_modules\mssql\lib\base\connection-pool.js:284:12)
    at ConnectionPool.globalClose (C:\ServerNODE\node_modules\mssql\lib\global-connection.js:46:22)
    at Object.close (C:\ServerNODE\node_modules\mssql\lib\global-connection.js:76:15)
    at C:\ServerNODE\priscom.js:352:9
    at _query (C:\ServerNODE\node_modules\mssql\lib\base\request.js:420:9)
    at Request.tds.Request.err [as userCallback] (C:\ServerNODE\node_modules\mssql\lib\tedious\request.js:479:15)
    at Request.callback (C:\ServerNODE\node_modules\tedious\lib\request.js:56:14)
(node:6700) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:6700) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
{ RequestError: No connection is specified for that request.
    at Request._query (C:\ServerNODE\node_modules\mssql\lib\base\request.js:465:37)
    at Request._query (C:\ServerNODE\node_modules\mssql\lib\tedious\request.js:353:11)
    at Request.query (C:\ServerNODE\node_modules\mssql\lib\base\request.js:401:12)
    at C:\ServerNODE\priscom.js:334:12
    at Immediate.globalConnection.connect (C:\ServerNODE\node_modules\mssql\lib\global-connection.js:56:7)
    at processImmediate (internal/timers.js:445:19) code: 'ENOCONN', name: 'RequestError' }
C:\ServerNODE\priscom.js:337
                                for (let i = 0; i < recordset['recordset'].length; i++) {
                                                             ^

TypeError: Cannot read property 'recordset' of undefined
    at C:\ServerNODE\priscom.js:337:34
    at _query (C:\ServerNODE\node_modules\mssql\lib\base\request.js:412:25)
    at Immediate._query.err (C:\ServerNODE\node_modules\mssql\lib\tedious\request.js:354:23)
    at processImmediate (internal/timers.js:445:19)

C:\ServerNODE>pause
Press any key to continue . . .
Leave a Comment