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.