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

Trying to create a bucket when cluster isn't intialized yet.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 3.1.0
    • 3.0.6
    • library
    • None
    • 1

    Description

      +Nodejs SDK - tested on v3.0.6 and v3.0.7
      +

      +
      The action for the issue is:+
      I am trying to create a bucket when the cluster isn't initialized yet.

       

      Issue:

      bucketManager.createBucket function isn't returning any error in case that the cluster isn't initialized yet.

      Expecting behavior:

      I would expect that the Cluster.connect was failed at the time when I created the connection with the specific username and password which is not happening.

      The cluster connection is seems to be ok even if the username and password is not exist (the cluster is still not initialized).

      I can understand that the Cluster connection is OK because the couchbase server is up and running but let's say even if that's the case, why the createBucket function not returning any error?

      Peace of code:
      (async () => {
       
      try {
      const cluster = await couchbase.Cluster.connect(host, { username, password });
      const bucketsManager = cluster.buckets();

      const createLocksBucket = await bucketsManager.createBucket(createLocksBucketObj, {timeout: 5000{color:#cccccc}});
      // The code is not continue running at this point - the promise isn't rejected at any point - createBucket function.

      console.log({createLocksBucket});
      } catch (error) {
      console.log(error);
       
      }
      })();

      Will be great if you can give me an answer as soon as possible because that's affecting our production services.

      Thanks.

      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
              ryan-utopia Ryan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty