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

findIssue returns null for error and issue

Open ervinebalo opened this issue 11 years ago • 2 comments

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

jira error

ervinebalo avatar Jul 07 '14 23:07 ervinebalo

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

carlkenne avatar Dec 11 '14 09:12 carlkenne

Thanks. Worked for me too.

sachshar avatar May 02 '18 07:05 sachshar