Closed fikriharjo closed 2 years ago
@fikriharjo start by simplifying your test case. Remove any line that doesn't impact the behavior. Make sure to add a let connection
in the correct spot before the try
, so you are closing the correct connection.
Then change your INSERT to use bind variables, see all the examples in the doc.
Its done. Just because i run terminal in vs code before and now i run it in terminal and everythings fine
Hello guys, can you help me to solve my problem? im using node v17.0.1 and sometimes my db crash and show error message like this NJS-003:invalid connection node:internal/errors:464 ErrorCaptureStackTrace(err).
im using loop to insert data from my application with this code:
async function insert_wo(req, res, data) { try { connection = await oracledb.getConnection(db_configuration); data[1] = "'"+" "+" "+" "+" "+" "+" "+" "+" "+" "+data[1]+"'";
}