When does it occur?
When you are trying to connect your MongoDB Atlas database to your app hosted on Square Cloud, you may come across the following error:Why does it occur?
You will receive this error message if you have not included the MongoDB Atlas addresses, the IP where your app is hosted, on the whitelist.How to fix
To fix this error, you need to whitelist the IP address, according to the mongodb documentation, you need to whitelist 0.0.0.0/0 IP address.