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

command aggregate requires authentication #66

Open
joseanand opened this issue Aug 20, 2019 · 6 comments
Open

command aggregate requires authentication #66

joseanand opened this issue Aug 20, 2019 · 6 comments

Comments

@joseanand
Copy link

Our mongoDB is running with authentication enabled. We created a user in mongoDB who has readWrite access. But when I run a aggregate query, then its throwing this error. I'm not getting this error when I'm running mongoDB authentication in disabled mode.
Below are the parameters I used for connection:

MongoDBURL: mongodb://localhost:27017/logs?authSource=admin
MongoDB Database: logs
Auth -> Basic Auth = true
Provided correct Basic Auth Details.

Appreciate your help!

@timstalli
Copy link

timstalli commented Sep 10, 2019

What are your datasource MongoDB details? it should look like mongodb://username:password@mongo:27017

@hmrc87
Copy link

hmrc87 commented Nov 22, 2019

Same here, I provided the authentication in the string

@ghost
Copy link

ghost commented Oct 20, 2021

Same error here! Has anyone had any luck fixing this issue?

@adamxyzxyz
Copy link

also getting this error

@amerinoo
Copy link

Any news on this?

@wewazhang
Copy link

i also get this error,and i add " /?authSource=db " to url , then is ok

image

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

No branches or pull requests

6 participants