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

lib/couchbase.js exports wrong error code for "notStored"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 2.0.5
    • None
    • library
    • Security Level: Public
    • None
    • Couchbase Server 3.0.1
      libcouchbase 2.4.5

    Description

      The error code returned by the server when appending/prepending to a non-existing key is CONST.NOT_STORED (18), not CONST.KEY_ENOENT (13).

      See attached demonstration:

      Error on prepend:

      { [CouchbaseError: Item not stored (did you try to append/prepend to a missing key?)] message: 'Item not stored (did you try to append/prepend to a missing key?)', code: 18 }

      Error on append:

      { [CouchbaseError: Item not stored (did you try to append/prepend to a missing key?)] message: 'Item not stored (did you try to append/prepend to a missing key?)', code: 18 }

      Attachments

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

        Activity

          People

            brett19 Brett Lawson
            pbihler pbihler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1m
                1m
                Remaining:
                Remaining Estimate - 1m
                1m
                Logged:
                Time Spent - Not Specified
                Not Specified

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty