priscom.bat

mail@pastecode.io avatar
unknown
plain_text
19 days ago
3.5 kB
2
Indexable
Never
ersoana":"Preda Horia","tara":"RO","judet":"B","localitate":"Municipiul București","adresa":"Str drumul malu rosu nr 23","telefon":"0722727323"}}
Nr intern generat cu succes!
Document CON introdus cu succes!
Apelare /stoc, trimis: 1 pozitii!
Apelare /stoc, trimis: 1 pozitii!
Apelare /stoc, trimis: 1 pozitii!
{"nr_comanda":"331843432","data_comanda":"20240701","sursa":"gomag","tip_plata":"RBM","valoare_comanda":"50.000000","observatii":"SERIE SASIU MASINA:WAUZZZ4BZ1N121787","produse":[{"cod_produs":"131427","denumire":"Geam usa dreapta fata Audi A6 (4B2, C5) [Fabr 1997-2005] OEM","cantitate":"1.00","pret_vanzare":"50.000000","valoare":"50.000000"},{"cod_produs":"TRANS","denumire":"Transport","cantitate":1,"pret_vanzare":20,"valoare":20}]}{"date_firma":{"denumire":"Adrian Ghiurutan","cod_fiscal":"","tara":"RO","judet":"SJ","localitate":"Zalău","adresa":"str.Crisan nr.32 bl.V2 ap.13","email":"adrian.ghiurutan@gmail.com","telefon":"0726773142"},"date_contact":{"nume":"Adrian Ghiurutan","tara":"RO","judet":"SJ","localitate":"Zalău","adresa":"str.Crisan nr.32 bl.V2 ap.13","email":"adrian.ghiurutan@gmail.com","telefon":"0726773142"},"adresa_livrare":{"nume_persoana":"Adrian Ghiurutan","tara":"RO","judet":"SJ","localitate":"Zalău","adresa":"str.Crisan nr.32 bl.V2 ap.13","telefon":"0726773142"}}
Nr intern generat cu succes!
Document CON introdus cu succes!
(node:9812) 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 insertDocuActi (C:\ServerNODE\priscom.js:1209:7)
    at C:\ServerNODE\priscom.js:1179:8
    at processTicksAndRejections (internal/process/task_queues.js:86:5)
(node:9812) 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: 6)
{ ConnectionError: Connection is closed.
    at Request._query (C:\ServerNODE\node_modules\mssql\lib\base\request.js:469: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: 'ECONNCLOSED', name: 'ConnectionError' }
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