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

When unknown key is specified on connections URI warning is not returned

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • next
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      MAC OS; Mongodb 3.6.3 and Node.js driver 3.0.4

      When the incorrect options is specified on the collection URI a warning is not returned.

      In the following example "retryBlah" is not a valid option but it does not return a warning.

      MongoClient.connect(“mongodb://localhost:27017,localhost:27018,localhost:27019/?replicaSet=m101&retryBlah=true”, function(err, client) {

      Notice that on the output of NewCreateProducts.js there is no warning!
      Jeegars-MacBook-Pro:nodejs jeegarg$ node NewCreateProducts.js
      Dispatched insert
      { result: { ok: 1, n: 1, opTime:

      { ts: [Timestamp], t: 20 }

      },

            Assignee:
            katherine.walker@mongodb.com Katherine Walker (Inactive)
            Reporter:
            jeegar.ghodasara@mongodb.com Jeegar Ghodasara
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: