#Can't connect to database through private url

20 messages · Page 1 of 1 (latest)

magic sinew
#

Hi guys, so this has been happening for a few days. I've tried with multiple frameworks, I actually changed from Hono to FastAPI thinking I didn't properly connect the database, but now is hunting me to FastAPI as well.

I have the same setup for other apps running in production, so idk what's happening 🤔

rich roostBOT
low whale
#

Try connecting with all lowercase.
Instead of Postgres. (...), connect with postgres. (...)

magic sinew
#

I'm using directly the env variable from the postgres service, so maybe it could be an error from Railway generating that?

magic sinew
#

Still the same

low whale
#

That's interesting...

magic sinew
#

It works fine with the public url

deep vector
#

Does your Postgres database have a domain name with an uppercase variable?

#

If so, temp rename it to something else all lowercase, and then back to just postgres

magic sinew
#

You mean this one?

#

That one was created automatically, I haven't changed it

magic sinew
#

You guys could check those domains generated with uppercase

deep vector
#

We do now, you happened to deploy that database just before we pushed a fix for that.

magic sinew
#

Oh ok!

#

Thank you Brody, always fast to fix things 💪

deep vector
#

Thank you for the kind words! (the fix wasnt me haha)