errno: -3008, code: 'ENOTFOUND', #syscall: 'getaddrinfo', hostname: 'postgres.railway.internal'
arush
TRIALOP

2 years ago

Trying to deploy my nextjs application which is communicating with a railway postgres db on the same project, with private networking enabled and getting this error.

another fastapi service is able to successfully communicate with the same db using private networking dns postgres.railway.internal.

it wont let me deploy the nextjs app due to this error. everything works fine locally too.

Solved

7 Replies

2 years ago

is this error coming from the build or the deploy logs?


marinetrade
PRO

2 years ago

I have the same issue. It was working fine a few days ago and then just stopped working. I've checked through it multiple times to no avail.


2 years ago

may you please answer my question as well?


arush
TRIALOP

2 years ago

Build


2 years ago

The private network is not available during the build phase, see caveats


s6thgehr
HOBBY

a year ago

I have the same issue during build phase, but how can I solve this issue. I want to use the private network during deployment.


a year ago

Please see my previous message, The private network is not available during the build phase.

You would have to not use the database during build, or use the database but connect to it via the public network.


Loading...