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

Cannot read property 'on' of undefined #83

Open
jiger25783 opened this issue Jun 13, 2017 · 4 comments
Open

Cannot read property 'on' of undefined #83

jiger25783 opened this issue Jun 13, 2017 · 4 comments

Comments

@jiger25783
Copy link

Getting following issue
[06/13/17 10:07:05] com.ibm.diagnostics.healthcenter.mqtt INFO: Connected to broker localhost:1883
C:\workspace_trunk\xxxxx\node_modules\appmetrics-dash\node_modules\appmetrics\lib\aspect.js:55
var existing = target[methodName];
^

TypeError: Cannot read property 'on' of undefined
at C:\workspace_trunk\xxxxx\node_modules\appmetrics-dash\node_modules\appmetrics\lib\aspect.js:55:24
at Array.forEach (native)
at Object.exports.before (C:\workspace_trunk\xxxxx\node_modules\appmetrics-dash\node_modules\appmetrics\lib\aspect.js:54:8)
at SocketioProbe.attach (C:\workspace_trunk\xxxxx\node_modules\appmetrics-dash\node_modules\appmetrics\probes\socketio-probe.js:68:10)
at C:\workspace_trunk\xxxxx\node_modules\appmetrics-dash\node_modules\appmetrics\index.js:147:33

@jiger25783
Copy link
Author

Tried with both 3.1.0 and 3.2.0

@sam-github
Copy link
Contributor

Could you include the full stack trace? Also, what version(s) of socketio do you have installed? npm ls socket.io will tell you (actually, the entire npm ls dependency tree output would be useful).

@tobespc
Copy link
Member

tobespc commented Jun 14, 2017

We have had this before RuntimeTools/appmetrics#241

@sjanuary
Copy link
Contributor

sjanuary commented Jun 14, 2017

We had to close #241 as there wasn't enough information but it looks like we can now identify the probe that is causing the issue which should help.

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

No branches or pull requests

4 participants