Skip to content
Advertisement

MongoTimeoutException: No Server Match – MongoDB Atlas

For a few days now, I can’t connect to any of my MongoDB Databases that are hosted by Altas. I’m always getting a MongoTimeoutException

JavaScript

Line 233-235 in Main

JavaScript

Here is the class where I connect to the Database

JavaScript

I replaced the user, password and database for this post.

I already checked everything twice. The IP is whitelisted, the connection server is the same, username and password are correct. This code worked fine, but suddenly broke. I haven’t changed anything releated to the Database that could cause this issue.

Advertisement

Answer

I just contacted the MongoDB Support. They told me that this is a current bug in TLS 1.3. I changed the Java Version to 8 and it worked

The official Bug Report can be found here: https://bugs.openjdk.java.net/browse/JDK-8236039

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement