P
Prisma7mo ago
yug

prisma client error

⨯ PrismaClientKnownRequestError: Invalid prisma.user.create() invocation: Unique constraint failed on the fields: (username)
2 Replies
Lord Zd
Lord Zd7mo ago
Have you confirmed if the data is unique?
Nurul
Nurul7mo ago
As the error message suggests a unique constraint is failing when you are trying to create a new record. Can you check if that is not the case?

Did you find this page helpful?