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
Solution:Jump to solution
turns out it's actually connected and thst is a prisma problem
https://stackoverflow.com/questions/68476229/m1-related-prisma-cant-reach-database-server-at-database5432...
6 Replies
Project ID:
8f42a050-c2de-477c-aba8-abfe507ea2ed
8f42a050-c2de-477c-aba8-abfe507ea2ed
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
turns out it's actually connected and thst is a prisma problem
https://stackoverflow.com/questions/68476229/m1-related-prisma-cant-reach-database-server-at-database5432
solution: add
?connect_timeout=300
to the connection stringWow, 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!