ging / fiware-idm

OAuth 2.0-based authentication of users and devices, user profile management, Single Sign-On (SSO) and Identity Federation across multiple administration domains.
https://keyrock-fiware.github.io
MIT License
37 stars 81 forks source link

UnhandledPromiseRejectionWarning: Error #334

Open nmtoan91 opened 1 year ago

nmtoan91 commented 1 year ago

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)