Java Spring Boot - Can't connect MongoDB cluster

I’m developing a Spring Boot project. I can access a local mongodb server with no issue, but when trying the uri

mongodb+srv://myuser:mypassword@cluster0.faoah.mongodb.net/mydocument?retryWrites=true&w=majority

I fail to access it in both Spring Boot and MongoDb Compass. It seems that I’m missing some service needed for it. Any orientation appretiated.

You need to give more information about the nature of the problem you are facing.

Please post a screenshot of what you are doing that shows the issue you are having.

I’m not near my device right now but the error was something like “Suddenly reached end of stream.”

Issue was that cluster’s original creator didn’t allow my IP on cluster’s configuration.

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