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

Failed to connect to MongoDB with username and password #480

Open
gengqin opened this issue Nov 2, 2021 · 1 comment
Open

Failed to connect to MongoDB with username and password #480

gengqin opened this issue Nov 2, 2021 · 1 comment

Comments

@gengqin
Copy link

gengqin commented Nov 2, 2021

It does not work when using authenticated MongoDB to store API definition

Reproduction Steps:
Configuration toml:
[database]
dsn = "mongodb://USERNAME:PASSWORD@janus-database:27017/janus"

Expected behavior:

It is expected to work as non-authenticated mongodb

Observed behavior:
Run: janus start
Error Message:

{"error":"could not build a repository for the database: could not connect to mongodb: server returned error on SASL authentication step: BSON field 'saslContinue.mechanism' is an unknown field.","level":"error","msg":"could not build a repository for the database: could not connect to mongodb: server returned error on SASL authentication step: BSON field 'saslContinue.mechanism' is an unknown field.","time":"2021-11-02T16:40:07+08:00"}

Janus version: [janus version 4.0.0]
OS and version: [Ubuntu]

@gengqin
Copy link
Author

gengqin commented Nov 3, 2021

Solved by self build in local environment.

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

1 participant