Can't reach database server at `aws-0-ap-south-1.pooler.supabase.com:5432`
DATABASE_URL="postgres://postgres.tdaudbkvlopqsbzesmau:[email protected]:6543/postgres"
DIRECT_URL="postgres://postgres.tdaudbkvlopqsbzesmau:[email protected]:5432/postgres"
Using supabase + prisma.
This problem is haunting me. Please help me.
31 Replies
2 days
@Abhinav if you followed that link, change your passwords immediately. That individual was not associated with Prisma.
yes, I figured out. Thanks a lot!
Someone please help with the question
Did you follow Supabase's instructions?
https://supabase.com/partners/integrations/prisma
yes, followed.
but still same error
What command exactly are you running?
And what is the output and full error message you are getting?
.env file
?connect_timeout=300
would need to be &connect_timeout=300
to actually work, but that connection string is not used in the db push
command
I just created a new project:
Which region is aws-0-ap-south-1
?
Singapore it seems, I also just created a database there and everything works.I have different regions too. I wonder what the problem is?
It happens every time?
Maybe try this:
That would tell Prisma to wait longer when trying to connect when you run
db push
.Yes. Haven't been able to run a project.
it was working fine earlier (3-4 months back). then it was paused. Now it doesn't work.
yes trying
yes the issue still persists.
seems like the database is not working? how can I test it?
I sent you a DM.
Generally you can use any other database tool to try these credentials.
will something like tableplus work?
Yes.
Ok, now we have a mysery:
I used your connection string twice. First time it failed, second time it worked.
In between these two I connected via DBeaver (a tool similar to tableplus).
Can you try again if it works for your with Prisma now as well?
nopes doesn't work : (
let me try tableplus
For me it keeps working.
do you think it's a network issue?
I am not sure.
I am confused now why it didn't work for me initially, but now consistently works.
it doesn't go after this
That, plus that you can not use the credentials I shared via DM, indicates a networking problem indeed.
Somehow your computer or network can not connect to Supabase's databases.
cool I will try changing DNS and other stuff. Will let you know. Thanks a lot! Big big help.
tried everything
FINALLY WORKED
USED VPN and worked
it's so weird
even with VPN it didn't work first time
Thanks a lot for your time, big help!
I'm using supabase too and it works
but what it won't work is realtime, a week of emails already, I'm 99% sure they have problems with it
Glad it’s working 🙂
Could you quickly summarize what was going wrong and what you did to fix it? We’re seeing a number of Supabase related issues like this one and are working with them to figure out an underlying cause
Yes, basically supabase has some weird problem where it just doesn't connect. DBeaver showed connection timeout. I tried everything like making another project (with different hosting place) but it finally worked when I turned on VPN and then tried 2-3 times. Now it works for local deployment but still shows some error in vercel deployment.
By adding binaryTargets = ["native"] like this in the schema file
I was able to solve this problem
but still very unsatisfactory performance. The retrieval from database is taking forever and getting errors almost every 3rd time