I get protocol.charCodeAt is not a function when I try to make any call.
Example:
var jira = new JiraApi({ protocol : 'https', host : 'ethtask2.atlassian.net', port : 443 , user : 'someUsername', password : 'somePassword' , version : '2', base : 'jira' });
Obviously I replaced someUsername and somePassword with the real stuff.
Turns out I can't pass in an object, but rather var jira = new JiraApi( 'https', 'ethtask2.atlassian.net', 443, 'someUser', 'somePassword', '2', 'jira' );
I get
protocol.charCodeAt is not a function
when I try to make any call.Example:
var jira = new JiraApi({ protocol : 'https', host : 'ethtask2.atlassian.net', port : 443 , user : 'someUsername', password : 'somePassword' , version : '2', base : 'jira' });
Obviously I replaced
someUsername
andsomePassword
with the real stuff.Then when I call listProjects, for example:
jira.listProjects(function(s, e) { console.log('s', s) console.log('e', e) res.send('a') })
I get the error
protocol.charCodeAt is not a function
This happens for other calls too, like findIssue. Any ideas?