SHAHiN
Error connecting to postgres using private url
Hey mates,
I searched for this issue in the threads and realised a couple of other people has also face this issue. But the solutions didn't help.
I have a golang backend connecting to a pg db using private url. Everything was working fine till today I started seeing this error:
dial tcp: lookup postgres.railway.internal on 8.8.8.8:53: no such host
I tried the workaround by adding ENABLE_ALPINE_PRIVATE_NETWORKING=true
but it didn't solve the issue. I will get another error when I add this variable: lookup postgres.railway.internal on [fd12::10]:53: dial udp [fd12::10]:53: connect: cannot assign requested address
Postgres public URL works fine.
Would be grateful if you would help with this issue.
Project ID: 106a77b5-14f8-4c94-867b-653f2eca6df7
8 replies