node-jira
node-jira copied to clipboard
findIssue returns null for error and issue
Hi I just cloned version "0.10.0" of node-jira and using it my app. After entering all of the necessary configs
var jira = new JiraApi('http', config.host, config.port, config.user, config.password, '2', true);
and then printing it out in console
jira.findIssue(issueNumber, function(error, issue) {
console.log('Jira Error: ' + error);
console.log('Jira Status: ' + error);
});
error and status both return null.
I am certain that my config info is correct because when entering bad credentials I receive the following error "401: Unable to connect to JIRA during findIssueStatus". Also, when I enter a bad issue number, I receive the following error "Invalid issue number."
Any ideas? thanks

I got the same issue when I used the 2.0.alpha1 version. switching to 2 solved it for me. Maybe you should look up the version number of your Jira installation
Thanks. Worked for me too.