connect-session-sequelize icon indicating copy to clipboard operation
connect-session-sequelize copied to clipboard

Error at Query.run > Inserting session data into database

Open josegabrielc opened this issue 2 years ago • 2 comments

Hi,

My query and session return to the client is working normally however there is no record being created in the database.

Log from my console:

Executing (default): INSERT INTO sessions (sid) VALUES (?); Error at Query.run (C:\Users\joseg\Desktop\horizon\api\node_modules\sequelize\lib\dialects\mysql\query.js:52:25) at C:\Users\joseg\Desktop\horizon\api\node_modules\sequelize\lib\sequelize.js:315:28 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async MySQLQueryInterface.insert (C:\Users\joseg\Desktop\horizon\api\node_modules\sequelize\lib\dialects\abstract\query-interface.js:308:21) at async model.save (C:\Users\joseg\Desktop\horizon\api\node_modules\sequelize\lib\model.js:2490:35) at async sessions.create (C:\Users\joseg\Desktop\horizon\api\node_modules\sequelize\lib\model.js:1362:12) at async sessions.findCreateFind (C:\Users\joseg\Desktop\horizon\api\node_modules\sequelize\lib\model.js:1476:23)

What could be happening?

josegabrielc avatar Apr 09 '23 21:04 josegabrielc

I am facing the same issue

ragibayon avatar Nov 21 '23 09:11 ragibayon