Nugget 14: Connection to MongoDB Atlas - SSL Alert 80

 

I'm using MongoDB Atlas (1) to host my NoSQL database. Creating an application with the MERN stack was very straightforward. However, after a few hours, when I tried to run the same application, Atlas displayed an SSL error message. How is this possible? What changed overnight?

Something changed overnight, of course! When creating the cluster in Atlas, my IP address was configured (2), and by default, it expired after 6 hours. The error message was a bit misleading, although the problem was discovered after some investigation.

Either re-whitelist your IP address or remove and re-add it to fix the error. I had a harder time finding the solution in Atlas, so I'm writing it down. Log in to Atlas, go to Network Access, and fix it there.  There is also an option to be able to access the app from any IP.  I prefer to restrict the IP.



After the correction, it worked as expected.

The Atlas MongoDB database is impressive (3, 4).  

References & Notes

  1. MongoDB Atlas is a fully managed, cloud-based database built on top of MongoDB Inc.  You could host a NoSQL database on different providers. Your MongoDB Atlas could be hosted on Azure or AWS.
  2. Different IP addresses can be configured to restrict access to your cluster to only those addresses.  The option of no restriction is also available.
  3. MongoDB Compass (GUI)
  4. Atlas Database

Comments

Popular posts from this blog

Nugget 9: Building a JobBank App using Blazor. A Nugget with a Story.

Nugget 11: Adding Filtering to a Blazor QuickGrid