nodejs unable to connect to postgres

gilamran
PRO

8 months ago

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'

}

2 Replies

gilamran
PRO

8 months ago

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


gilamran
PRO

8 months ago

I have 31 projects in Railway, and all started failing to connect, or some SSL certificate issues started...

This is URGENT


gilamran
PRO

8 months ago

I've tried using DATABASE_URL and not DATABASE_PRIVATE_URL and got the similar error...
```
uncaughtException: Error: read ECONNRESET

Dec 23 21:02:04

Error: read ECONNRESET

Dec 23 21:02:04

at TCP.onStreamRead (node:internal/stream_base_commons:218:20)

Dec 23 21:02:04

Done in 1.09s.
```


gilamran
PRO

8 months ago

Anyone!?


gilamran
PRO

8 months ago

Looks like it's imposibble to connect to postgress not from anywhere…


gilamran
PRO

8 months ago

Moving all the services from US West to US East solved the problem…
There's a major issue there!


nodejs unable to connect to postgres - Railway Help Station