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
6 Replies
Project ID:
1c99c47e-6562-4c7d-b1a9-146dee423704
Project ID:
1c99c47e-6562-4c7d-b1a9-146dee423704
1c99c47e-6562-4c7d-b1a9-146dee423704
Solution
Could you try adding a 3 second sleep in your start command?
Sure, 2 mins
Yeah that worked 🤣
Awesome :D