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:Jump to 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
8 Replies
Project ID:
432beb61-8b91-43dd-94a8-478ef66969f1
screenshot of your railway project please
from the golang service config?
no, a screenshot of the browser open to your railway project
ah ok sorry ... I hope that works
show me the code you use to connect to mongo
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
no problem