Bucket not ready timeout exception

Hello Couchbase team, i want to know why Couchbase is giving bucket not ready time out exception when calling from AWS lambda either it is java or NodeJS. But it happen some time and if i add
bucket.waitUntilready() it works fine. Can you please state the reason why this happen.

Hello @Varun_Bisht
Opening resources is asynchronous. That is, the call to cluster.bucket or Cluster.connect will complete instantly, and opening that resource will continue in the background.

You can force waiting for the resource to be opened with a call to waitUntilReady , which is available on both the Cluster and Bucket level and hence the behavior.