R
Railway11mo ago
fedev

Can't connect Postgres internal networking

I'm trying to connect to postgres with railway.internal but I think i'm doing something wrong PrismaClientInitializationError: Can't reach database server at `postgres.railway.internal`:`5432
6 Replies
Percy
Percy11mo ago
Project ID: 8f42a050-c2de-477c-aba8-abfe507ea2ed
fedev
fedev11mo ago
8f42a050-c2de-477c-aba8-abfe507ea2ed
Kvasir
Kvasir11mo ago
Last I recall there was a small delay after service start before internal networking is attached and working. Do retries or a small sleep help? Also is that Postgres listening on ipv6?
Solution
fedev
fedev11mo ago
fedev
fedev11mo ago
solution: add ?connect_timeout=300 to the connection string
JONATH~1.BAT
JONATH~1.BAT11mo ago
Wow, I was having the exact same problem yesterday and wrote up a #help post and didn't hit enter. I'm glad I did one more search before I did!
Want results from more Discord servers?
Add your server