Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uncaught exception #163

Closed
wants to merge 1 commit into from
Closed

uncaught exception #163

wants to merge 1 commit into from

Conversation

faust64
Copy link
Contributor

@faust64 faust64 commented Jul 2, 2016

My logs show several occurrences of the following error:

node-app[XXX]: error: UNCAUGHT EXCEPTION TypeError: Cannot read property 'name' of undefined#012    at RiakNode._connectionClosed (/usr/share/XXX/Staging-d-O79Y6AIIG/node_modules/basho-riak-client/lib/core/riaknode.js:565:27)#012    at emitTwo (events.js:106:13)#012    at RiakConnection.emit (events.js:191:7)#012    at RiakConnection._emitAndClose (/usr/share/XXX/Staging-d-O79Y6AIIG/node_modules/basho-riak-client/lib/core/riakconnection.js:137:18)#012    at RiakConnection._connHandleEnd (/usr/share/XXX/Staging-d-O79Y6AIIG/node_modules/basho-riak-client/lib/core/riakconnection.js:144:14)#012    at emitNone (events.js:91:20)#012    at Socket.emit (events.js:185:7)#012    at endReadableNT (_stream_readable.js:934:12)#012    at _combinedTickCallback (internal/process/next_tick.js:74:11)#012    at process._tickDomainCallback (internal/process/next_tick.js:122:9)

I assume, from the comment a couple lines above, that command / command.name may be undefined, which may cause these uncaught exceptions.

Let me know if you need an issue or anything.

My logs show several occurrences of the following error:
```
node-app[XXX]: error: UNCAUGHT EXCEPTION TypeError: Cannot read property 'name' of undefined#012    at RiakNode._connectionClosed (/usr/share/XXX/Staging-d-O79Y6AIIG/node_modules/basho-riak-client/lib/core/riaknode.js:565:27)basho#12    at emitTwo (events.js:106:13)basho#12    at RiakConnection.emit (events.js:191:7)basho#12    at RiakConnection._emitAndClose (/usr/share/XXX/Staging-d-O79Y6AIIG/node_modules/basho-riak-client/lib/core/riakconnection.js:137:18)basho#12    at RiakConnection._connHandleEnd (/usr/share/XXX/Staging-d-O79Y6AIIG/node_modules/basho-riak-client/lib/core/riakconnection.js:144:14)basho#12    at emitNone (events.js:91:20)basho#12    at Socket.emit (events.js:185:7)basho#12    at endReadableNT (_stream_readable.js:934:12)basho#12    at _combinedTickCallback (internal/process/next_tick.js:74:11)basho#12    at process._tickDomainCallback (internal/process/next_tick.js:122:9)
```

I assume, from the comment a couple lines above, that command / command.name may be undefined, which may cause these uncaught exceptions.

Let me know if you need an issue or anything.
@lukebakken
Copy link
Contributor

Cleaned up stack trace:

node-app[XXX]: error: UNCAUGHT EXCEPTION TypeError: Cannot read property 'name' of undefined#012
at RiakNode._connectionClosed (/usr/share/XXX/Staging-d-O79Y6AIIG/node_modules/basho-riak-client/lib/core/riaknode.js:565:27)#012
at emitTwo (events.js:106:13)#012
at RiakConnection.emit (events.js:191:7)#012
at RiakConnection._emitAndClose (/usr/share/XXX/Staging-d-O79Y6AIIG/node_modules/basho-riak-client/lib/core/riakconnection.js:137:18)#012
at RiakConnection._connHandleEnd (/usr/share/XXX/Staging-d-O79Y6AIIG/node_modules/basho-riak-client/lib/core/riakconnection.js:144:14)#012
at emitNone (events.js:91:20)#012
at Socket.emit (events.js:185:7)#012
at endReadableNT (_stream_readable.js:934:12)#012
at _combinedTickCallback (internal/process/next_tick.js:74:11)#012
at process._tickDomainCallback (internal/process/next_tick.js:122:9)

@lukebakken
Copy link
Contributor

Thank you, I have added your commit to PR #164

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