peaksnail / pinpoint-node-agent

pinpoint agent for nodejs
Apache License 2.0
75 stars 26 forks source link

Cannot read property 'apply' of undefined exception #36

Open ShruthiH14 opened 4 years ago

ShruthiH14 commented 4 years ago

Getting below error upon adding the code in app.js file of the sample application and unable to start the application.

C:\APMTool_POC\pinpoint-node-agent-master\agent\commons\cls\index.js:66 throw exception; ^

TypeError: Cannot read property 'apply' of undefined at express0application0handle (C:\APMTool_POC\pinpoint-node-agent-master\agent\plugins\core\express\wrap.js:255:23) at Object.cb (C:\APMTool_POC\pinpoint-node-agent-master\agent\commons\trace\method_interceptor.js:48:24) at Namespace.run (C:\APMTool_POC\pinpoint-node-agent-master\agent\commons\cls\index.js:59:5) at Function.originalWrapper [as handle] (C:\APMTool_POC\pinpoint-node-agent-master\agent\commons\trace\method_interceptor.js:47:23) at Server.app (C:\APMTool_POC\BasicExpressSite-master\node_modules\connect\lib\connect.js:60:31) at Server.emit (events.js:210:5) at parserOnIncoming (_http_server.js:745:12) at HTTPParser.parserOnHeadersComplete (_http_common.js:115:17) { 'error@context': [Object: null prototype] { TRANSACTION: TraceContext { spanRecorder: null, spanEventRecorder: null, callStack: [], sequence: 0, depth: 1, isRootTrace: true, transferNs: false, sampling: true } } }