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

Unrecognized option in readConcern: 0 when using useNewURLParser

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      Using a URL of the form

      mongodb://u:p@shard-00-00.mongodb.net:27017,shard-00-01.mongodb.net:27017,shard-00-02.mongodb.net:27017/dbname?ssl=true&replicaSet=shard-0&authSource=admin&readPreference=nearest&w=majority&readConcern=majority

      and specifying _

      {useNewURLParser: true}

      _ in the connect options leads to calls being rejected with the error message

       

      Unrecognized option in readConcern: 0
      code:72
      codeName:InvalidOptions
      

       

      Remove _

      {useNewURLParser: true}

      _  and everything works fine 

       

            Assignee:
            daniel.aprahamian@mongodb.com Daniel Aprahamian (Inactive)
            Reporter:
            martinhigham Martin Higham
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: