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

strange error when executing n1ql with bootstrap-failed bucket

    XMLWordPrintable

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.5
    • 2.1.6
    • None
    • None

    Description

      var couchbase = require('couchbase');
      var N1qlQuery = couchbase.N1qlQuery;
       
      var bucket = (new couchbase.Cluster('couchbase://localhost')).openBucket('travel-saddmple',
      function(err) {
          console.error('Got error %j', err);
      });
       
      var q = N1qlQuery.fromString('SELECT * FROM `travel-sample` LIMIT 10');
      var req = bucket.query(q);
      req.on('row', function(row) {
          console.log('Got a row');
      });
      req.on('error', function(err) {
          console.error('Got error %j', err);
      });
      req.on('end', function(meta) {
          console.log('All rows received. Metadata is %j:', meta);
      });
      

      Output is:

      /Users/mnunberg/Source/node-dev/node_modules/couchbase/lib/bucket.js:189
            itm[1][itm[1].length-1](err, null);
                                   ^
       
      TypeError: itm[1][(itm[1].length - 1)] is not a function
          at Bucket.<anonymous> (/Users/mnunberg/Source/node-dev/node_modules/couchbase/lib/bucket.js:189:30)
          at emitOne (events.js:82:20)
          at Bucket.emit (events.js:169:7)
          at Bucket.<anonymous> (/Users/mnunberg/Source/node-dev/node_modules/couchbase/lib/bucket.js:172:19)
      

      Attachments

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

        Activity

          There are no comments yet on this issue.

          People

            brett19 Brett Lawson
            mnunberg Mark Nunberg (Inactive)
            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