newrelic / node-newrelic

New Relic Node.js agent code base. Developers are welcome to create pull requests here, please see our contributing guidelines. For New Relic technical support, please go to http://support.newrelic.com.
Apache License 2.0
967 stars 395 forks source link

SyntaxError: Unexpected token < #158

Closed tristan-fgol closed 10 years ago

tristan-fgol commented 10 years ago

Hi,

I received a few errors from the new relic module, these only happened a few times on our production servers and don't seem to be happening any more but I will keep an eye on it. But though I should pass it on as an FYI

SyntaxError: Unexpected token < at Object.parse (native) at IncomingMessage. (/var/app/current/source/utilities.js:15:34) at IncomingMessage.EventEmitter.emit (events.js:117:20) at _stream_readable.js:920:16 at /var/app/current/node_modules/newrelic/node_modules/continuation-local-storage/node_modules/async-listener/glue.js:177:31 at process._tickDomainCallback (node.js:459:13) at process. (/var/app/current/node_modules/newrelic/node_modules/continuation-local-storage/node_modules/async-listener/index.js:18:15)

groundwater commented 10 years ago

Hi @tristan-fgol, at first glance this looks like the error is coming from /var/app/current/source/utilities.js.

The newrelic module patches some low-level components, so it shows up in almost every stack trace.

If you have more information we're happy to look at it closer, but I would guess the error is coming from your app, not our module.

tristan-fgol commented 10 years ago

Hi @groundwater you are entirely correct it does indeed look like something in our code, I didn't look that far up the stack to be honest ;) my apologies for jumping to conclusions

groundwater commented 10 years ago

@tristan-fgol no problem :smile: