-
Type: Task
-
Resolution: Done
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
NODE-3763 Description
What problem are you facing?
I am connecting on our Kubernetes Replica Set via the following code:
const client = new MongoClient("mongodb+srv://main-mongo-service-headless.nextor-qa.svc.cluster.local", { tls: false, ssl: false, replicaSet: "rs0" }); await client.connect();
Although TLS and SSL are the same I get:
MongoParseError: All values of tls/ssl must be the same.
at parseOptions (/home/node/node_modules/mongodb/lib/connection_string.js:284:19)
at new MongoClient (/home/node/node_modules/mongodb/lib/mongo_client.js:62:63)
at DbConnect (/home/node/config/dumpDb.js:11:24)
at Object.Get (/home/node/config/dumpDb.js:30:24)
at Object.getSourceDataCursor (/home/node/helpers/pipeline.js:5:39)
at /home/node/copy.js:96:47
at processTicksAndRejections (internal/process/task_queues.js:95:5)
What driver and relevant dependency versions are you using?
"mongodb": "^4.1.4",
Steps to reproduce?
See code above
- is depended on by
-
NODE-3763 Wrongly given error - MongoParseError: All values of tls/ssl must be the same
- Closed