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

Incorrect 'no secondary' error thrown

    • Type: Icon: Task Task
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • Labels:
      None

      It seems like the 'no secondary found in replicaset or invalid replica set name' error is thrown when the driver option `connectWithNoPrimary` is set and there is no secondary, even if it's possible to connect directly to the primary (or even when read preference is set to primary). 

       

      https://github.com/mongodb-js/mongodb-core/blob/master/lib/topologies/replset.js#L627

            Assignee:
            daniel.aprahamian@mongodb.com Daniel Aprahamian (Inactive)
            Reporter:
            anna.herlihy@mongodb.com Anna Herlihy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: