Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect to Atlas Cluster #512

Open
sgkamakama opened this issue Jun 17, 2024 · 6 comments
Open

Connect to Atlas Cluster #512

sgkamakama opened this issue Jun 17, 2024 · 6 comments
Assignees
Labels

Comments

@sgkamakama
Copy link

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

I am wondering if Restheart support mongodb+srv

Thank you

@mkjsix mkjsix self-assigned this Jun 18, 2024
@mkjsix
Copy link
Member

mkjsix commented Jun 18, 2024

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.

@sgkamakama
Copy link
Author

sgkamakama commented Jun 18, 2024 via email

@sgkamakama
Copy link
Author

sgkamakama commented Jun 18, 2024 via email

@mkjsix
Copy link
Member

mkjsix commented Jun 18, 2024

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.

@sgkamakama
Copy link
Author

sgkamakama commented Jun 18, 2024 via email

@sgkamakama
Copy link
Author

sgkamakama commented Jun 18, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants