Connect to MongoDB Atlas Serverless Instance


I'm trying to establish a connection to MongoDB Atlas using a serverless service using the "mongolite" package, having openssl previously installed. When trying to connect to the server I receive :

Error: URI option "loadBalanced" prohibited in TXT record

I use the following code to try accessing the database.

connection_string = "mongodb+srv://<usr>:<pwd>@<cluster><myDatabase>"
mongo_db <- mongo(collection="Sample", db="myDatabase", url=connection_string)```

Thanks for your help!

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.