MongoDB Atlas (mLab)

Configuring your Mongo DB in a Bot hosted on Discloud.

When connecting your bank MongoDB to a Bot Discord hosted on DisCloud you may come across the possible error:

Erro ao Conectar na MeuDB: MongoNetworkError: connection 0 to meudb-shard-00-00-9m7sg.mongodb.net:27017 closed

You will receive this error message if you have not included the MongoDB Atlas addresses, the IP where your Bot is hosted, on the white list.

Due to the way DisCloud works, we are unable to provide you with an IP address.

So according to the documentation MongoDB Atlas, the only way to get DisCloud instances to connect to your bank, is to add 0.0.0.0/0 (that is, all addresses) to your MongoDB Atlas whitelist.

Last updated