AdapterError when login

I got adapter error when login using next-auth@beta. Error: PrismaClientKnownRequestError: \nInvalid prisma.account.findUnique() invocation:\n\n\nCannot fetch data from service:\nReflect.get called on non-object\n.
4 Replies
cocosrobal
cocosrobal4mo ago
on Vercel it's working
James
James4mo ago
GitHub
🐛 Bug Report — Runtime APIs: The AsyncContext of AsynLocalStorages ...
If I define a custom thenable and try to access the store of an AsyncLocalStorage in the then method, the store seems to be undefined although it shouldn't be. Basically: import { AsyncLocalSto...
cocosrobal
cocosrobal4mo ago
So should I add thenable to the prism or next-auth?
James
James4mo ago
Huh? My point was that this is most likely related to the bug in v8 that causes the async local storage context to be lost in certain cases. At the moment people have mostly reported it with neon's driver, but sounds like potentially it's impacting prisma too if you're running into it with that. I would recommend avoiding prisma though if you want to deploy to the edge because it's pretty heavyweight and not the most compatible