appmetrics-dash icon indicating copy to clipboard operation
appmetrics-dash copied to clipboard

Cannot read property 'on' of undefined

Open jiger25783 opened this issue 7 years ago • 4 comments

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 avatar Jun 13 '17 17:06 jiger25783

Tried with both 3.1.0 and 3.2.0

jiger25783 avatar Jun 13 '17 17:06 jiger25783

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

sam-github avatar Jun 13 '17 19:06 sam-github

We have had this before https://github.com/RuntimeTools/appmetrics/issues/241

tobespc avatar Jun 14 '17 07:06 tobespc

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.

sjanuary avatar Jun 14 '17 13:06 sjanuary