denodrivers / denodrivers/mongo

Connection failed: Failed to decode base64

Open
#381 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
511
Forks
89
PR merge metrics
No merged PRs in 30d

Description

From time 2 time i see this error.
Call stack:
Error: MongoError: "Connection failed: Failed to decode base64."
at MongoClient.connect (https://deno.land/x/mongo@v0.31.1/src/client.ts:46:13)

my code looks like this:

export { MongoClient } from "https://deno.land/x/mongo@v0.31.1/mod.ts"
const client = new MongoClient()
const options = {
servers: [{host: MONGO_HOST, port: MONGO_PORT}],
credential: {username: MONGO_USER, password: MONGO_PWD, db: 'admin', mechanism: 'SCRAM-SHA-1'},
db: 'mydb'
}
await client.connect(options) // this line causes error

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.