[Node] Error from Node.js application regarding New Relic integration

Hi, iam getting this error when integrate new relic with nodejs application :

error: Error: Request failed with status code 404n at createError (/home/node/app/node_modules/axios/lib/core/createError.js:16:15)n at settle (/home/node/app/node_modules/axios/lib/core/settle.js:17:12)n at IncomingMessage.handleStreamEnd (/home/node/app/node_modules/axios/lib/adapters/http.js:236:11)n at IncomingMessage.emit (events.js:203:15)n at IncomingMessage.EventEmitter.emit (domain.js:448:20)n at IncomingMessage.wrapped (/home/node/app/node_modules/newrelic/lib/transaction/tracer/index.js:198:22)n at IncomingMessage.wrappedResponseEmit (/home/node/app/node_modules/newrelic/lib/instrumentation/core/http-outbound.js:223:24)n at endReadableNT (_stream_readable.js:1145:12)n at Shim.applySegment (/home/node/app/node_modules/newrelic/lib/shim/shim.js:1430:20)n at wrapper (/home/node/app/node_modules/newrelic/lib/shim/shim.js:2097:17)

but new relic still able to read the traffic from my nodejs application, just that error keep repeating again and again.

really appreciate your help please.

:wave: Hey @jaswenny1 ,

I’m happy to elaborate on what’s being shown in this error. Let’s take a look at the first message you see from the agent:

(/home/node/app/node_modules/newrelic/lib/transaction/tracer/index.js:198:22)n at IncomingMessage.wrappedResponseEmit

It points to this section of code and is essentially the agent re-throwing an error from the wrapper around your axios api call function (my guess would be an endpoint issue judging by the 404 error type).

I hope this helps and let me know if you have any other questions :sunglasses: