Knight Sigurd
Knight Sigurd
PPrisma
Created by Knight Sigurd on 7/26/2024 in #help-and-questions
PrismaClientInitializationError - Medal awarded for whoever that solves this.
Hello boys and girls, and a big thank you for reading this. I have a website created with react nextjs using prisma orm and cockroachDB as Db and hosted in Vercel. In my logs, I sometimes recieve this error below, but when I go to the page, the page works fine each time.
PrismaClientInitializationError: Invalid prisma.product.findMany() invocation: Can't reach database server at ****-**-****.7tc.aws-eu-central-1.cockroachlabs.cloud:26257 Please make sure your database server is running at ****-**-****.7tc.aws-eu-central-1.cockroachlabs.cloud:26257. at In.handleRequestError (/var/task/node_modules/@prisma/client/runtime/library.js:122:7154) at In.handleAndLogRequestError (/var/task/node_modules/@prisma/client/runtime/library.js:122:6188) at In.request (/var/task/node_modules/@prisma/client/runtime/library.js:122:5896) at async l (/var/task/node_modules/@prisma/client/runtime/library.js:127:11167) at async getServerSideProps (/var/task/.next/server/pages/index.js:1:3911) { clientVersion: '5.12.1', errorCode: undefined }
or it can be att at:
async getServerSideProps (/var/task/.next/server/pages/product/[name].js:1:9042)
Different pages, but when i go in each time, the pages work fine. Has anyone stumbled upon this before or can guide me to the right direction to understanding and solving this issue? Thanks a lot for reading this ❤️
5 replies