ERRCONREFUSED local PostgreSQL
Anonymous
TRIALOP

3 years ago

Error: connect ECONNREFUSED ::1:5432

at createConnectionError (node:net:1634:14)

at afterConnectMultiple (node:net:1664:40) {

errno: -111,

code: 'ECONNREFUSED',

syscall: 'connect',

address: '::1',

port: 5432

Error: connect ECONNREFUSED 127.0.0.1:5432

at createConnectionError (node:net:1634:14)

at afterConnectMultiple (node:net:1664:40) {

errno: -111,

code: 'ECONNREFUSED',

syscall: 'connect',

address: '127.0.0.1',

port: 5432

can someone help me solving this error?

3 Replies

3 years ago

It looks like your code is trying to connect to a local Postgres database, please look at this docs page for a list of available variables


Anonymous
TRIALOP

3 years ago

so if i have .env file named DB_HOST, i have to change it to PGHOST instead?


3 years ago

You would want to use service variables for this, with reference variables


Welcome!

Sign in to your Railway account to join the conversation.

Loading...