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

Nodejs SDK 4.0 fails connecting to Capella

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • 4.0.0
    • None
    • None
    • 1

    Description

      Test Case

       

      var couchbase = require('couchbase')
      const clusterConnStr =
        'couchbases://cb.pvvohwbpfks92oyb.nonprod-project-avengers.com?ssl=no_verify&console_log_level=5'
      const cloudRootCertificate = 'ca.pem'
      const username = 'dbaas'
      const password = 'P@ssw0rd'
      const bucketName = 'test'
      async function go() {
        const cluster = await couchbase.connect(clusterConnStr, {
          username: username,
          password: password,
      //    trustStorePath: cloudRootCertificate,
        })
        const bucket = cluster.bucket(bucketName)
        const collection = bucket.defaultCollection()
      }
      try {
        go()
      }
      catch (e) {
        console.log (e)
      }
      

       

      Output

      /Users/krishna.doddi/Projects/node/node_modules/couchbase/dist/bindingutilities.js:470
                  return new errs.UnambiguousTimeoutError(baseErr, context);
                         ^UnambiguousTimeoutError: unambiguous timeout
          at errorFromCpp (/Users/krishna.doddi/Projects/node/node_modules/couchbase/dist/bindingutilities.js:470:20)
          at /Users/krishna.doddi/Projects/node/node_modules/couchbase/dist/connection.js:99:71 {
        cause: [Error: unambiguous_timeout] { code: 14 },
        context: undefined

      Trace

      log.txt

       

       

       

       

      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
              krishna.doddi Krishna Doddi
              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