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:

sh 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

brody
EMPLOYEE

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


brody
EMPLOYEE

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


brody
EMPLOYEE

a year ago

!s


Status changed to Solved brody 12 months ago


Loading...