Skip to content

Comments

fixed an issue that was causing crashes if yubico request failed.#2

Open
genixpro wants to merge 1 commit intojedp:masterfrom
sensibill:master
Open

fixed an issue that was causing crashes if yubico request failed.#2
genixpro wants to merge 1 commit intojedp:masterfrom
sensibill:master

Conversation

@genixpro
Copy link

We were getting crashes on the server that are result of the yubikey library:

,,index.js:272 - Uncaught Exception: TypeError: Cannot read property 'statusCode' of undefined,
,index.js:272 - at Object. (/home/ubuntu/sensibill-api-production/node_modules/yubikey/lib/yubikey.js:83:14),
,index.js:272 - at self.callback (/home/ubuntu/sensibill-api-production/node_modules/yubikey/node_modules/request/index.js:142:22),
,index.js:272 - at Request.EventEmitter.emit (events.js:95:17),
,index.js:272 - at ClientRequest.self.clientErrorHandler (/home/ubuntu/sensibill-api-production/node_modules/yubikey/node_modules/request/index.js:246:10),
,index.js:272 - at ClientRequest.EventEmitter.emit (events.js:95:17),
,index.js:272 - at CleartextStream.socketErrorListener (http.js:1547:9),
,index.js:272 - at CleartextStream.EventEmitter.emit (events.js:95:17),
,index.js:272 - at SecurePair. (tls.js:1389:19),
,index.js:272 - at SecurePair.EventEmitter.emit (events.js:92:17),
,index.js:272 - at SecurePair.maybeInitFinished (tls.js:982:10),
,,index.js:264 - About to exit with code: 255,

I just added in graceful handling of the error conditions causing the crash. Please pull and npm publish ASAP

@lctrt
Copy link

lctrt commented Mar 29, 2015

This PR is critically important, please merge ! I have the same issue here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants