Skip to content
This repository was archived by the owner on Jul 15, 2018. It is now read-only.
This repository was archived by the owner on Jul 15, 2018. It is now read-only.

Replica set issues #20

@chhib

Description

@chhib

I am trying to make the Server take arguments with replica set members by extending options such as:

this._server = new mongodb.Server(host, port, { ...
  readPreference: 'primaryPreferred'
}

I do get this error though:

MongoError: not master or secondary; cannot currently read from this replSet member

Any ideas how to make this work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions