Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error at Query.run > Inserting session data into database #146

Open
josegabrielc opened this issue Apr 9, 2023 · 1 comment
Open

Error at Query.run > Inserting session data into database #146

josegabrielc opened this issue Apr 9, 2023 · 1 comment

Comments

@josegabrielc
Copy link

josegabrielc commented Apr 9, 2023

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?

@ragibayon
Copy link

I am facing the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants