We are starting to see Socket Hang up errors on node js applications that appears to point us to dynatrace being an issue. We could be wrong. But, what is interesting is we are moving from CA to dynatrace. When we were not on dynatrace, we didnt see this issue and as soon as we introduced dynatrace we are starting to notice it. Initially we thought it could be us. But, then as we move apps to utilize dynatrace, we are seeing a spike in this error. First SPA and now Lambdas. We have SPA app and AWS lambdas where we have noticed this. Attached are some of sample errors for your reference. Are there any suggestions for us on how to troubleshoot this issue or how to prove this is not dynatrace being the problem?
Any help is greatly appreciated.
RequestError: socket hang up at ClientRequest.<anonymous> (/var/task/node_modules/got/source/request-as-event-emitter.js:178:14) at ClientRequest.c (/opt/nodejs/node_modules/@dynatrace/oneagent-dependency/agent/bin/126.96.36.19901001-160832/any/nodejs/nodejsagent.js:3784:23) at Object.dynatraceOnServiceExecutionIndicator (/opt/nodejs/node_modules/@dynatrace/oneagent-dependency/agent/bin/188.8.131.5201001-160832/any/nodejs/nodejsagent.js:1792:20) at Object.a.safeInvoke (/opt/nodejs/node_modules/@dynatrace/oneagent-dependency/agent/bin/184.108.40.20601001-160832/any/nodejs/nodejsagent.js:1843:29) at ClientRequest.<anonymous> (/opt/nodejs/node_modules/@dynatrace/oneagent-dependency/agent/bin/220.127.116.1101001-160832/any/nodejs/nodejsagent.js:5309:21) at ClientRequest.emit (events.js:326:22) at ClientRequest.EventEmitter.emit (domain.js:483:12) at ClientRequest.origin.emit (/var/task/node_modules/@szmarczak/http-timer/source/index.js:37:11) at TLSSocket.socketCloseListener (_http_client.js:401:11) at Object.dynatraceOnServiceExecutionIndicator (/opt/nodejs/node_modules/@dynatrace/oneagent-dependency/agent/bin/18.104.22.16801001-160832/any/nodejs/nodejsagent.js:1792:20)
Error: socket hang up at createHangUpError (_http_client.js:323:15) at TLSSocket.socketOnEnd (_http_client.js:426:23) at Object.dynatraceOnServiceExecutionIndicator [as doInvoke] (/opt/dynatrace/oneagent/agent/bin/22.214.171.12401020-120314/any/nodejs/nodejsagent.js:1807:20) at Object.b.safeInvoke (/opt/dynatrace/oneagent/agent/bin/126.96.36.19901020-120314/any/nodejs/nodejsagent.js:1860:29) at TLSSocket.<anonymous> (/opt/dynatrace/oneagent/agent/bin/188.8.131.5201020-120314/any/nodejs/nodejsagent.js:5355:21) at TLSSocket.emit (events.js:203:15) at endReadableNT (_stream_readable.js:1145:12) at process._tickCallback (internal/process/next_tick.js:63:19)
Solved! Go to Solution.
In case other Dynatrace users have a similar issue, here are the Support findings:
This is an uncaught exception and Dynatrace is capturing the socket hang up - which is why you see references to Dynatrace in the stack trace. It does not appear that this issue is caused by Dynatrace. If you would like to confirm this, you can disable monitoring on the host generating this service call and note if the issue persists.