Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-3764

Investigate NODE-3763 - Wrongly given error - MongoParseError: All values of tls/ssl must be the same

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • 2
    • Not Needed

      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

            Assignee:
            durran.jordan@mongodb.com Durran Jordan
            Reporter:
            dbeng-pm-bot PM Bot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: