Unrecognized option in readConcern: 0 when using useNewURLParser

XMLWordPrintableJSON

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

      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 (Inactive)
              Reporter:
              Martin Higham
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: