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

bucket.query error is not being returns via the callback 1st parameter

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • None
    • None
    • None

    Description

      Couchbase server (4.5 beta enterprise) is being setup through CLI. No index storage mode is being set beforehand.

      Where trying to CREATE PRIMARY INDEX via nodejs client library (bucket.query), there is no error returned via the callback first parameter. However there in the 3rd parameter of the callback, we got an error as below.

      { requestID: 'ddd74be7-86b7-40d8-b2c9-64f21c51d8f6',
        signature: null,
        errors:
         [ { code: 5000,
             msg: 'GSI CreatePrimaryIndex() - cause: Please Set Indexer Storage Mode Before Create Index' } ],
        status: 'errors',
        metrics:
         { elapsedTime: '605.781796ms',
           executionTime: '605.695541ms',
           resultCount: 0,
           resultSize: 0,
           errorCount: 1 } }
      

      This is considered as an error too and should be return via the 1st parameter of the callback for a node application to handle the error.

      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
              mwan M Wan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty