R
Railway•10mo ago
mohsin

Mongodb not connecting locally

I'm suddenly not able to connect to my mongodb database locally. My other services seem to still be connected but when I'm trying to connect to it locally I get:
getaddrinfo ENOTFOUND mongodb.railway.internal
getaddrinfo ENOTFOUND mongodb.railway.internal
Connection string: mongodb://username:[email protected]:33764 This is my public networking:
No description
7 Replies
Percy
Percy•10mo ago
Project ID: 73761ff1-9247-4ed1-ae8c-d8d3f7d25203
mohsin
mohsinOP•10mo ago
73761ff1-9247-4ed1-ae8c-d8d3f7d25203
Fragly
Fragly•10mo ago
railway.internal is the host for Railway's private network You're trying to connect to your service's private network over the public network make sure you're actually using the connection string that you say you're using
mohsin
mohsinOP•10mo ago
I tried redoing the public networking and redeploying, still nothing Also, it was working using the same configuration a couple of days ago so I'm not sure what could have changed
Fragly
Fragly•10mo ago
I can't reproduce this, I used MongoDB Compass and tried connecting to a MongoDB db in Railway and it works perfectly fine for me Have you tried turning it off and back on again? ( restarting Compass or PC )
mohsin
mohsinOP•10mo ago
I guess I haven't, will try that 😄 This solved it: https://discord.com/channels/713503345364697088/1181654477787369565/1181716402428727357
Fragly
Fragly•10mo ago
interesting, I don't have that enabled and it worked for me but glad you figured it out
Want results from more Discord servers?
Add your server