mongo icon indicating copy to clipboard operation
mongo copied to clipboard

Getting "Authentication failed" randomly

Open 4ov opened this issue 4 years ago • 1 comments

I'm getting this error randomly when i try to connect to a cluster

error: Uncaught (in promise) Error: MongoError: {"ok":0,"errmsg":"Authentication failed.","code":18,"codeName":"AuthenticationFailed","operationTime":{"$timestamp":"6922424620343623682"},"$clusterTime":{"clusterTime":{"$timestamp":"6922424620343623682"},"signature":{"hash":"XXX","keyId":{"low":1,"high":1602091634,"unsigned":false}}}}
            throw new MongoError(maybeError);
            ^
    at WireProtocol.commandSingle (protocol.ts:34:13)
    at async continueScramConversation (scram.ts:194:18)
    at async executeScram (scram.ts:118:10)
    at async ScramAuthPlugin.auth (scram.ts:59:12)
    at async MongoClient.connect (client.ts:67:7)

4ov avatar Jan 27 '21 13:01 4ov

@4ov Is your problem still exist on newer driver versions? If yes, can you provide a repro?

erfanium avatar Jan 06 '22 09:01 erfanium