SoftInstigate/restheart

Connect to Atlas Cluster

sgkamakama opened this issue · 7 comments

I am getting connection error when using mongodb+srv://username:password@host/db.

I am wondering if Restheart support mongodb+srv

Thank you

There are few things I am sure of in life, one of them is that RESTHeart fully supports the mongodb+srv connection string, as most of our projects are running with MongoDB Atlas. Generally speaking, RESTHeart depends on this on the offcial MongoDB Java driver

If you can provide here your connection errors, maybe we could find the real reason.

The error message you're encountering, not authorized on catalyst to execute command, indicates that the user you are using to connect to the MongoDB Atlas cluster does not have the required permissions to execute the query on the catalyst database.
Check user permissions and if the user does not have the necessary permissions, you can update the user's roles to include read access to the catalyst database. Add a role such as read or readAnyDatabase to the user.

Closing this. Please re-open when you'll have additional information.