denodrivers / denodrivers/mongo

Getting "Authentication failed" randomly

Open
#174 1 comment 5 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
511
Forks
89
PR merge metrics
No merged PRs in 30d

Description

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)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.