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' }
6 Replies
a year 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
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
@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 • 12 months ago