Uploaded image for project: 'Couchbase node.js Client Library'
  1. Couchbase node.js Client Library
  2. JSCBC-243

Error when removing a key and options is null

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • None
    • 2.0.10
    • library
    • Security Level: Public
    • None
    • Mac OS X, Couchbase Server 3.0.1

    Description

      The docs state that options is an optional parameter. I would expect that the following 'options' combinations should work:

      1) null
      2) {}
      3) object with cas, persist_to and/or replicate_to

      The issue: passing 'options' as null returns the following error: TypeError: Cannot read property 'hashkey' of null

      Example:

      options = (options ? options : null);

      bucket.remove(key, options, function (err, result)

      { .... }

      );

      If I replace the line above with the following, it works fine:

      options = (options ? options : {});

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            brett19 Brett Lawson
            tito Tito Ciuro
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty