R
Railway•10mo 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•10mo ago
Project ID: 432beb61-8b91-43dd-94a8-478ef66969f1
Brody
Brody•10mo ago
screenshot of your railway project please
c0nscienc3
c0nscienc3OP•10mo ago
from the golang service config?
Brody
Brody•10mo ago
no, a screenshot of the browser open to your railway project
c0nscienc3
c0nscienc3OP•10mo ago
ah ok sorry ... I hope that works
No description
Brody
Brody•10mo ago
show me the code you use to connect to mongo
Solution
c0nscienc3
c0nscienc3•10mo 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•10mo ago
no problem
Want results from more Discord servers?
Add your server