Skip to content

2nd insert into orders fails in the nodejs sequelize app  #30

@schoudhury

Description

@schoudhury

follow the instructions here (that are common to spring and sequelize) https://docs.yugabyte.com/latest/develop/build-apps/java/ysql-spring-data/#send-requests-to-the-app

the very last command (2nd insert into orders table) fails. is auto-increment of the primary key not being used here?

Unhandled rejection SequelizeUniqueConstraintError: duplicate key value violates unique constraint "orders_pkey"
    at Query.formatError (/Users/schoudhury/dev/yugabyte/orm-examples/node/sequelize/node_modules/sequelize/lib/dialects/postgres/query.js:315:16)

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