Skip to content

UnhandledPromiseRejectionWarning: Error #334

@nmtoan91

Description

@nmtoan91

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions