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

Unsupported authMechanism: MONGODB-AWS #481

Open
benoit-campeau opened this issue Dec 20, 2023 · 1 comment
Open

Unsupported authMechanism: MONGODB-AWS #481

benoit-campeau opened this issue Dec 20, 2023 · 1 comment

Comments

@benoit-campeau
Copy link

benoit-campeau commented Dec 20, 2023

Hello,

When i try running liquibase update, i get this error

Caused by: liquibase.exception.DatabaseException: Could not open connection to database: mongodb+srv://host.mongodb.net/workflowdb?authMechanism=MONGODB-AWS at liquibase.ext.mongodb.database.MongoConnection.open(MongoConnection.java:121) at liquibase.database.ConnectionServiceFactory.create(ConnectionServiceFactory.java:32) ... 25 more Caused by: java.lang.IllegalArgumentException: Unsupported authMechanism: MONGODB-AWS at com.mongodb.AuthenticationMechanism.fromMechanismName(AuthenticationMechanism.java:99) at com.mongodb.ConnectionString.createCredentials(ConnectionString.java:703) at com.mongodb.ConnectionString.<init>(ConnectionString.java:396) at liquibase.ext.mongodb.database.MongoConnection.open(MongoConnection.java:109) ... 26 more
Not Sure why i get this. Double checked any typo. This exact same uri work fine when running the app.

@vitaliimak
Copy link
Collaborator

Hi @benoit-campeau, thank you for reporting this issue.
The extension does not support MONGODB-AWS authMechanism right now. Would you be willing to submit a PR for this?

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

2 participants