Error connect to mongoDb


my server connect successfully but it get connect error afterall. In local, it’s working well.
This is my URI: mongodb+srv://username:passworld@cluster0.9nvj6nd.mongodb.net/shopping

How can i fix it

Hi,

I’ve replied to the ticket you also opened. Let’s keep the conversation in one place (on the ticket). I’ll repeat my response here:

Your code shows you’re trying to connect to a Mongo database on 127.0.0.1. That would be incorrect.

Render doesn’t currently offer managed MongoDB instances. It’s possible to run your own, but this would require a paid Private Service. You’d also need to be comfortable with deploying, configuring, and maintaining the instance yourself, e.g., updates, optimizations, backups, etc.

If you’d prefer a managed MongoDB service, you could use something like MongoDB Atlas. Atlas usually needs inbound IPs allowlisted, so Render’s outbound IPs are covered here: Static Outbound IP Addresses | Render Docs

1 Like

Hi,

Tks for your helps. I will try on the way you recommended

Vào 22:16, Th 3, 5 thg 3, 2024 Alan Pennell-Smith via Render <notifications@render.discoursemail.com> đã viết:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.