Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError: Unexpected token < #158

Closed
tristan-fgol opened this issue Jun 19, 2014 · 3 comments
Closed

SyntaxError: Unexpected token < #158

tristan-fgol opened this issue Jun 19, 2014 · 3 comments

Comments

@tristan-fgol
Copy link

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
Copy link
Contributor

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
Copy link
Author

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
Copy link
Contributor

@tristan-fgol no problem 😄

cmcadams-newrelic pushed a commit to cmcadams-newrelic/node-newrelic that referenced this issue Jan 29, 2024
…/elasticsearch/follow-redirects-1.15.4

chore(deps): bump follow-redirects from 1.15.3 to 1.15.4 in /elasticsearch
bizob2828 pushed a commit to bizob2828/node-newrelic that referenced this issue Apr 19, 2024
NEWRELIC-4422: remove usage of __NR_instrumented in tests
bizob2828 pushed a commit to bizob2828/node-newrelic that referenced this issue Apr 23, 2024
NEWRELIC-4422: remove usage of __NR_instrumented in tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants