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

10 months 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

0 Replies

brody
EMPLOYEE

10 months ago

are you getting this error during build or runtime


cojoclaudiu
HOBBYOP

10 months 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

10 months ago

I'm not sure if I need an extra setup


brody
EMPLOYEE

10 months 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

10 months ago

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


brody
EMPLOYEE

10 months ago

!s


Status changed to Solved brody 10 months ago


Loading...