Loka.GLHF
Loka.GLHF
KPCKevin Powell - Community
Created by Loka.GLHF on 1/21/2024 in #back-end
Problem with google provider and next-auth.
Im having difficulties figuring out how to fix this error: nique constraint failed on the constraint: users_username_key { message: '\n' + 'Invalid prisma.user.create() invocation:\n' + '\n' + '\n' + 'Unique constraint failed on the constraint: users_username_key', stack: 'PrismaClientKnownRequestError: \n' + 'Invalid prisma.user.create() invocation:\n' + '\n' + '\n' + 'Unique constraint failed on the constraint: users_username_key\n' + ' at si.handleRequestError (D:\prgrammeringsprojekt\next-ecommerce-project\project\node_modules\@prisma\client\runtime\library.js:125:6817)\n' + ' at si.handleAndLogRequestError (D:\prgrammeringsprojekt\next-ecommerce-project\project\node_modules\@prisma\client\runtime\library.js:125:6151)\n' + ' at si.request (D:\prgrammeringsprojekt\next-ecommerce-project\project\node_modules\@prisma\client\runtime\library.js:125:5859)\n' + ' at async l (D:\prgrammeringsprojekt\next-ecommerce-project\project\node_modules\@prisma\client\runtime\library.js:130:10025)', name: 'PrismaClientKnownRequestError' } I have a next.js application that is is running on my local machine and im trying to log in with different gmail accounts but when I log in with 1 I cant log in with any other gmail account afterwards that Ive added as test-users in the google console and connected to my next.js application. I'm using prisma with mongodb. anyone familiar with error?
8 replies