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

bucket.query returns an error with undefined properties when the view doesn't exist

    XMLWordPrintable

Details

    • Task
    • Resolution: Duplicate
    • Major
    • None
    • 2.0.0-beta
    • library
    • Security Level: Public
    • None
    • Mac OS X Yosemite + Couchbase 2.5.1 + Node SDK 2.0.0 beta

    Description

      Take the following snippet:

      var ViewQuery = couchbase.ViewQuery;
      var query = ViewQuery.from('all', 'by-id').limit(100).stale(ViewQuery.Update.NONE);

      bucket.query(query, function (err, results) {
      if (err)

      { ... }

      }

      If the view doesn't exist, the error returned in the callback has all its properties uninitialized/unset. Screenshot attached.

      Attachments

        Issue Links

          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:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty