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

Why not worked?

Open pavelpower opened this issue 11 years ago • 1 comments

My host: redmine,company.com/redmine And uesd apiKey: '*********************************'

var Redmine = require('promised-redmine');
var config = require('./config.json').redmine;

var redmine = new Redmine(config);

// get issue
redmine.getIssues({project_id: 1})
    .then(function(data) {
        console.log("Issues:");
        console.log(data);
    },
    function(err) {
        console.log("Error: " + err.message);
        return;
    }
);

And, what i see in console?

STATUSCODE REJECTIONS 301
ERROR Server returns stats code: 301 
......

look npm pakage redminer - this package is worked

pavelpower avatar Aug 08 '14 22:08 pavelpower

Did try different variations of host? Try just company.com instead of company.com/redmine

knoxcard avatar Jun 07 '16 22:06 knoxcard