R
Railway•10mo ago
itsjxck

Second service not able to connect to Postgres DB

Have just spun up a "worker" app in the project, and although it reuses the majority of the code from the main API app I'm running, for some reason it is unable to connect to the DB: Error: getaddrinfo ENOTFOUND postgres.railway.internal
Solution:
Could you try adding a 3 second sleep in your start command?
Jump to solution
6 Replies
Percy
Percy•10mo ago
Project ID: 1c99c47e-6562-4c7d-b1a9-146dee423704
Percy
Percy•10mo ago
Project ID: 1c99c47e-6562-4c7d-b1a9-146dee423704
itsjxck
itsjxckOP•10mo ago
1c99c47e-6562-4c7d-b1a9-146dee423704
Solution
Fragly
Fragly•10mo ago
Could you try adding a 3 second sleep in your start command?
itsjxck
itsjxckOP•10mo ago
Sure, 2 mins Yeah that worked 🤣
Fragly
Fragly•10mo ago
Awesome :D
Want results from more Discord servers?
Add your server