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

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

Open
schoudhury opened this issue Jun 18, 2019 · 0 comments
Open

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

schoudhury opened this issue Jun 18, 2019 · 0 comments

Comments

@schoudhury
Copy link
Contributor

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)
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