我正在使用nodester和iriscouch。我已经安装了couchdb-api包。这是我的代码:
console.log("Running");
//Appears in the logs
var dbServer = require("couchdb-api").srv('eric-wieser.iriscouch.com');
console.log(dbServer);
//Appears in the logs
dbServer.info(function (err, response) {
console.log("Info!");
//Never executed. Logs show:
//Error: ECONNREFUSED, Could not contact DNS servers
// at IOWatcher.callback (dns.js:74:15)
});
为什么这不起作用?那个错误试图告诉我什么?