P
Prisma2y ago
yug

prisma client error

⨯ PrismaClientKnownRequestError: Invalid prisma.user.create() invocation: Unique constraint failed on the fields: (username)
2 Replies
Lord Zd
Lord Zd2y ago
Have you confirmed if the data is unique?
Nurul
Nurul2y 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?