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

UnhandledPromiseRejectionWarning: Error #334

Open
nmtoan91 opened this issue Jul 3, 2023 · 0 comments
Open

UnhandledPromiseRejectionWarning: Error #334

nmtoan91 opened this issue Jul 3, 2023 · 0 comments

Comments

@nmtoan91
Copy link

nmtoan91 commented Jul 3, 2023

I just start a keyrock server, I got this error when trying to register new user.

fiware-keyrock | 2023-07-03T03:02:31.662Z idm:web-session_controller --> login_not_required
fiware-keyrock | 2023-07-03T03:02:31.663Z idm:web-user_controller --> create
fiware-keyrock | (node:1) UnhandledPromiseRejectionWarning: Error
fiware-keyrock |     at Query.run (/opt/fiware-idm/node_modules/sequelize/lib/dialects/mysql/query.js:52:25)
fiware-keyrock |     at /opt/fiware-idm/node_modules/sequelize/lib/sequelize.js:315:28
fiware-keyrock |     at processTicksAndRejections (internal/process/task_queues.js:95:5)
fiware-keyrock |     at async MySQLQueryInterface.select (/opt/fiware-idm/node_modules/sequelize/lib/dialects/abstract/query-interface.js:407:12)
fiware-keyrock |     at async Function.findAll (/opt/fiware-idm/node_modules/sequelize/lib/model.js:1140:21)
fiware-keyrock |     at async Function.findOne (/opt/fiware-idm/node_modules/sequelize/lib/model.js:1240:12)
fiware-keyrock |     at async Function.findOrCreate (/opt/fiware-idm/node_modules/sequelize/lib/model.js:1411:21)
fiware-keyrock | (node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
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

1 participant