Sample Header Ad - 728x90

How to fix mongosh v2.3.3 connection error with AWS DocumentDB v5.0.0

1 vote
1 answer
324 views
When I try to connect to documentdb cluster version 5.0.0 using mongosh version 2.3.3 it is returned the error message: MongoServerError: Unsupported mechanism [ -301 ] I am using the connection string with this format:
mongosh 'mongodb://my_user:my_password@my-host-name.cluster-id-aws.us-east-1.docdb.amazonaws.com:27017/my_db_name&tls=true&tlsCAFile=rds-global-bundle.pem&replicaSet=rs0&readPreference=secondaryPreferred&retryWrites=false'
I tried to search for a solution at the AWS DocumentDB and MongoDB Community documentations, but I didn't find a fix for this issue.
Asked by Emerson Vicente (11 rep)
Nov 5, 2024, 04:03 PM
Last activity: May 23, 2025, 08:05 AM