I'm using nodester with iriscouch. I've installed the couchdb-api package. This is my code:
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)
});
Why is this not working? What is that error trying to tell me?
nameserver 8.8.8.8
in/etc/resolv.conf
, but i doubt you can change that on nodester :( – ElephantHost
Header toeric-wieser.iriscouch.com
, so that iriscouch knows to which iriscouch-user to direct the request. Or else you would just see: 50.16.186.4 – Elephant