Details
-
Bug
-
Resolution: Won't Fix
-
Minor
-
None
-
2.0.2
-
Security Level: Public
-
None
Description
Doing the following:
[code]
var Cluster = new couchbase.Cluster('yourcluster');
var Manager = Cluster.manager('admin','pass');
Manager.createBucket('bukkit',{},function(err){
if(!err){
Cluster.openBucket('bukkit');
// [Error: failed to connect to bucket] code: 22
setTimeout(function()
{Cluster.openBucket('bukkit');},5000);
// Connection successful
}
});
[code]
Trying to connect to the newly created bucket inside the callback fails, but waiting a few seconds after the callback triggers the connection to the bucket will be successful