-
Type: Bug
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
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
- depends on
-
NODE-3764 Investigate NODE-3763 - Wrongly given error - MongoParseError: All values of tls/ssl must be the same
- Closed