Hostname should be a string
/usr/lib/node_modules/node-redmine/lib/redmine.js:31
if (typeof host !== 'string') throw new Error('hostname should be a String !
^
Error: hostname should be a String !
at Object.Redmine (/usr/lib/node_modules/node-redmine/lib/redmine.js:31:39)
at Object.
here is my code...
var Redmine = require('node-redmine');
var redmine = new Redmine({ host: 'redmine.updatepromise.com', apiKey: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', });
// get issue redmine.getIssues({project_id: 9088}, function(err, data) { if (err) { console.log("Error: " + err.message); return; }
console.log("Issues:"); console.log(data); });