Details
Description
I have been unable to get errors thrown from within the callbacks of the couchbase.get() or couchbase.set() to be reported up the chain. It looks like they are being 'eaten' connection connection.get() in bucket.js.
see below for more info:
var driver = require('couchbase');
var config =
{ hosts : [ "localhost:8091" ], bucket : "default" };
driver.connect(config, function(err, couchbase) {
console.log("connected");
couchbase.set("new", "something", function(err, meta)
);
});
and/or:
var driver = require('couchbase');
var config =
{ hosts : [ "localhost:8091" ], bucket : "default", debug : true };
var test = function(callback)
{ callback(); };
driver.connect(config, function(err, couchbase) {
if (err)
couchbase.set("new", "something", function(err, meta) {
couchbase.get("new", function(err, doc, meta)
);
});
test(function()
);
});