在node.js中,Couchbase get / getMulti超时失败
我是新的Couchbase,并尝试使用couchbase模块1.2.1,连接到数据库似乎工作正常,但get和getMulti操作失败,我得到的错误是“操作超时”。 我试图增加超时,但没有帮助。
var db = new couchbase.Connection({ host:'localhost:8091', bucket:'beer-sample'}, function(err){ if (err){ throw err; // not getting here } }); db.get("id", function(err, result) { if (!err && result){ // getting error req.id = result; } });
可能是什么问题?
您应该尝试重新安装Couchbase服务器,然后使用127.0.0.1:8091
主机重试。
什么版本的Couchbase服务器,以及您正在使用的平台/架构也将有助于了解。