Migration Error: getaddrinfo ENOTFOUND postgres.railway.internal
cojoclaudiu
HOBBYOP

a year ago

Hello I'm trying to seed some data to my railway PG database and I've got this error:

Error: getaddrinfo ENOTFOUND postgres.railway.internal
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) {
  errno: -3008,
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: 'postgres.railway.internal'
}```
Solved

6 Replies

a year ago

are you getting this error during build or runtime


cojoclaudiu
HOBBYOP

a year ago

runtime, on localhost, I'm using the public url for db locally and I've tried to generate and migrate my table, which was working but when I try to seed my data I got that error and I don't know why


cojoclaudiu
HOBBYOP

a year ago

I'm not sure if I need an extra setup


a year ago

the private network is not available locally, you must make sure you are using the public database url in all cases when running commands locally


cojoclaudiu
HOBBYOP

a year ago

@Brody thank youuu, you was right. I had some places where I was not using the public url


a year ago

!s


Status changed to Solved brody over 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...