Skip to content

Getting "OperationFailure: bad auth" after updating to v1.1.0 #15

@chanshing

Description

@chanshing

After updating to v1.1.0 I'm getting the following error:

OperationFailure: bad auth : user arn:aws:iam::111222333444:user/Shing is not found, full error: {'ok': 0, 'errmsg': 'bad auth : user arn:aws:iam::111222333444:user/Shing is not found', 'code': 8000, 'codeName': 'AtlasError'}

It happens after I instantiate the client and call .list_database_names():

HOST = f"mongodb+srv://{MY_MONGO_URL_DOT_NET}/?authSource=%24external&authMechanism=MONGODB-AWS&retryWrites=true&w=majority"

client = MongoClient(HOST, server_api=ServerApi('1'))

client.list_database_names()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions