Nodejs connecting to postgres on internal network
gilamran
PROOP

a year ago

I'm trying to connect to a postgres service via the internal network, the nodejs is using DATABASE_URL variable to connect to postgres, so I've added a DATABASE_URL and assigned ${{Postgres.DATABASE_PRIVATE_URL}} to it, when the nodejs starts I see that the variable value is correct but it's unable to connect.
What am I doing wrong?

Solved

10 Replies

gilamran
PROOP

a year ago

2e77135f-d222-458b-80d8-e131a96a6aeb


gilamran
PROOP

a year ago

Support?


brody
EMPLOYEE

a year ago

are you getting the error during build or runtime?

is Postgres in the same project?

check your service settings, are you on the v2 runtime?


gilamran
PROOP

a year ago

During runtime
same project yes
where can I see this v2 thing?


brody
EMPLOYEE

a year ago

in the service settings


gilamran
PROOP

a year ago

Legacy


brody
EMPLOYEE

a year ago

switch to v2


gilamran
PROOP

a year ago

That's it?


brody
EMPLOYEE

a year ago

yep that's all


brody
EMPLOYEE

a year ago

!s


Status changed to Solved brody about 1 year ago


Loading...