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://

How can i fix it


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 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


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 <> đã viết:

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