Skip to content
This repository has been archived by the owner on Jul 23, 2020. It is now read-only.

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

Open
PiotrZadka opened this issue Dec 19, 2019 · 0 comments
Open

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

PiotrZadka opened this issue Dec 19, 2019 · 0 comments

Comments

@PiotrZadka
Copy link

PiotrZadka commented Dec 19, 2019

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')

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant