postgres DNS not resolving

arhammusheer
HOBBY

a year ago

Is this an internal DNS problem? Private url isn't resolving but works with DATABASE_URL

npm WARN config production Use `--omit=dev` instead.

> tasmota-mqtt-subscriber@1.0.0 start

> node dist/index.js

Failed to connect to PostgreSQL Error: getaddrinfo ENOTFOUND postgres.railway.internal

at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26) {

errno: -3008,

code: 'ENOTFOUND',

syscall: 'getaddrinfo',

hostname: 'postgres.railway.internal'

}

npm WARN config production Use `--omit=dev` instead.

> tasmota-mqtt-subscriber@1.0.0 start

> node dist/index.js

0 Replies

arhammusheer
HOBBY

a year ago

560b7a6c-de0e-4e7e-9735-0ae63ba4118a


arhammusheer
HOBBY

a year ago

Nvm fixed


a year ago

are you on the v2 runtime?


arhammusheer
HOBBY

a year ago

I was on legacy


a year ago

Legacy runtime is no fun, V2 is where it's at


arhammusheer
HOBBY

a year ago

I'm not sure why it carried over when I changed V2 to legacy on a different project. This expected?


arhammusheer
HOBBY

a year ago

I switched back to V2 now and private networking works now.


a year ago

it's a per service change, nothing would be carried anywhere


arhammusheer
HOBBY

a year ago

Interesting.

The config defaulted to legacy I believe

I started a project yesterday and switched the deploy to legacy.
Later I deleted the project

Today I started a new project which is this but it started as legacy.


arhammusheer
HOBBY

a year ago

I'll ignore it i guess


arhammusheer
HOBBY

a year ago

thanks


a year ago

no problem