Can't connect to DATABASE_PUBLIC_URL

django.db.utils.OperationalError: connection to server at "crossover.proxy.rlwy.net" (66.33.22.252), port 34005 failed: timeout expired

Database URL: postgresql://postgres:****@crossover.proxy.rlwy.net:34005/railway

Trying to access locally on my machine.

No obvious reason why it's not connecting.

Database is live on railway, connects with hosted project just fine, just keeps timing out now.

Django project. I set the DATABASE_URL to the public url but not working.

Am I missing a setting somewhere?

Solved$10 Bounty

13 Replies

passos
MODERATOR

a month ago

So the issue here is only locally?


passos
MODERATOR

a month ago

I have no problems when trying to reach your database. I would make sure that your ISP firewall does not block any Railway traffic.

1437791585818509300


Yes, I keep getting it locally :/


Actually it worked only one time so far when I tried to run a command but keeps failing now


passos
MODERATOR

a month ago

Can you try another network or increase the timeout?


I don't know a lot about networking I'm just on my pc 😅


passos
MODERATOR

a month ago

By network I would mean a mobile network, basically any other internet access you got


Oh I see


Let me check


Wow! It worked!


That's strange


Status changed to Solved brody 27 days ago


passos
MODERATOR

a month ago

Great to know. As I said earlier, this is definitely a problem with your ISP or firewall. I recommend looking into it.


Do you mind sharing your mobile network provider?


Loading...