node-redmine icon indicating copy to clipboard operation
node-redmine copied to clipboard

Hostname should be a string

Open knoxcard opened this issue 9 years ago • 0 comments

/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. (/home/justin/abr/redmine.js:3:15) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:945:3

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); });

knoxcard avatar Jun 07 '16 22:06 knoxcard