R
Railway•5mo ago
c0nscienc3

golang connect to private database

Hi there, I have trouble that my golang server is not able to connect to the private mongodb deployed with railway. I assume you need a project id: 432beb61-8b91-43dd-94a8-478ef66969f1 I am not really sure why it can not find the internal database. Can you help me?
Solution:
🫥 woops sorry it was my fault ... I had made some changes a couple of days ago which I never tested. they now lead to a failed deployment. Now my server starts with the internal address of the mongodb. Thank you very much @Brody for your quick response
Jump to solution
8 Replies
Percy
Percy•5mo ago
Project ID: 432beb61-8b91-43dd-94a8-478ef66969f1
Brody
Brody•5mo ago
screenshot of your railway project please
c0nscienc3
c0nscienc3•5mo ago
from the golang service config?
Brody
Brody•5mo ago
no, a screenshot of the browser open to your railway project
c0nscienc3
c0nscienc3•5mo ago
ah ok sorry ... I hope that works
No description
Brody
Brody•5mo ago
show me the code you use to connect to mongo
Solution
c0nscienc3
c0nscienc3•5mo ago
🫥 woops sorry it was my fault ... I had made some changes a couple of days ago which I never tested. they now lead to a failed deployment. Now my server starts with the internal address of the mongodb. Thank you very much @Brody for your quick response
Brody
Brody•5mo ago
no problem