cojoclaudiu
HOBBYOP
2 years 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'
}```6 Replies
2 years ago
are you getting this error during build or runtime
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
2 years 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
@Brody thank youuu, you was right. I had some places where I was not using the public url
2 years ago
!s
Status changed to Solved brody • over 1 year ago