R
Railway14mo 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
Percy14mo ago
Project ID: 8f42a050-c2de-477c-aba8-abfe507ea2ed
fedev
fedevOP14mo ago
8f42a050-c2de-477c-aba8-abfe507ea2ed
Kvasir
Kvasir14mo 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
fedev14mo ago
fedev
fedevOP14mo ago
solution: add ?connect_timeout=300 to the connection string
JONATH~1.BAT
JONATH~1.BAT14mo 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