mweibel / connect-session-sequelize

Sequelize SessionStore for Express/Connect

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error at Query.run > Inserting session data into database

josegabrielc opened this issue · 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?

I am facing the same issue