#Can't connect to DATABASE_PUBLIC_URL

14 messages · Page 1 of 1 (latest)

willow peak
#

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?

crimson jewel
#

So the issue here is only locally?

#

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

willow peak
#

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

crimson jewel
#

Can you try another network or increase the timeout?

willow peak
#

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

crimson jewel
#

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

willow peak
#

Oh I see

#

Let me check

#

Wow! It worked!

#

That's strange

crimson jewel
# willow peak That's strange

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

polar ridgeBOT
#

New reply sent from Central Station thread:

✅ This thread has been marked as solved. Please create a new thread if you need further assistance.

You're seeing this because this thread has been automatically linked to the Central Station thread.