Having error on NodeJs after successfully insert query executed.
The confusing thing is data inserted in the Table successfully and not getting an error inside the callback function db.query(insertMsgQuery, (err, rows, fields) => { console.log('query error === ', err) });
but due to error shown below my Node APP crashed [nodemon] app crashed - waiting for file changes before starting...
Insert Query
INSERT INTO `chat_thread_messages` (`thread_id`,`msg_text`,`from`,`to`,`product_id`,`msg_type`) VALUES (9,'Bonjour, Cet article est-il toujours disponible?',6,7,4,'text')
Error
node_modules/mysql/lib/protocol/Parser.js:437
throw err; // Rethrow non-MySQL errors
^
Error: ER_TRUNCATED_WRONG_VALUE: Truncated incorrect DOUBLE value: 'null'