floralvikings / jira-connector

NodeJS Wrapper for the Jira REST API
http://floralvikings.github.io/jira-connector/
MIT License
373 stars 180 forks source link

Uncaught TypeError: Cannot read property '2' of null #233

Open PiotrZadka opened 4 years ago

PiotrZadka commented 4 years ago

JiraApi.getAuthorizeURL( { host: "jiratestlogin.atlassian.net", oauth: { consumerKey: "people", privateKey: "-----BEGIN RSA PRIVATE KEY----- // removed my key from here -----END RSA PRIVATE KEY-----" } }, (error, oauth) => { console.log(oauth); } );

When I try to run this it gives me an error about other module that is associated with push../node_modules/parse-asn1/fixProc.js.module.exports

11 | var decrypted 12 | if (!match) { 13 | var match2 = key.match(fullRegex) 14 | decrypted = new Buffer(match2[2].replace(/[\r\n]/g, ''), 'base64') | ^ 15 | } else { 16 | var suite = 'aes' + match[1] 17 | var iv = Buffer.from(match[2], 'hex')