N
Neon6mo ago
multiple-amethyst

Database Connection Error

Hi everyone! I am building an application, and I have a database on NeonDB. For some reason, I'm getting an error in the format Error: P1001: Can't reach database server at ep-white-thunder-826300.us-east-2.aws.neon.tech:5432. I've gone through the docs and done the work arounds, but my database compute is sitting idle as if my application is not able to commuicate with it. Has anybody been through this error before? Can you point me to what parameters I should look out for to fix this error.
4 Replies
national-gold
national-gold6mo ago
Hi, Are you using Prisma to connect?
afraid-scarlet
afraid-scarlet6mo ago
Yes i am using Prisma and am facing the same issue Please help me out
national-gold
national-gold6mo ago
Here's a working example you can compare to your setup: https://github.com/neondatabase/examples/tree/main/with-prisma
GitHub
examples/with-prisma at main · neondatabase/examples
Examples and code snippets demonstrating common ways of integrating Neon with various frameworks and languages. - neondatabase/examples
afraid-scarlet
afraid-scarlet6mo ago
Actually, I have a properly set up my project, recently I wanted to change the neondb instance my project is connected to, So I replaced my db url and tried migrating the db , that's when I got the above error, And one more thing, based on someone's feedback I tried accessing the db through another internet connection, it worked, It seems there's a issue with ISP service, I would like to know why this happened and how can I resolve it so I can access the db via my network

Did you find this page helpful?