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

Parse error crashing app #157

Closed
cmoncrief opened this issue Jun 17, 2014 · 3 comments
Closed

Parse error crashing app #157

cmoncrief opened this issue Jun 17, 2014 · 3 comments

Comments

@cmoncrief
Copy link

I'm getting the following errors a couple of times per day. I updated to the latest agent version yesterday in hopes that it would fix it, but it has happened again today.

First we get this:

Error: Parse Error
Stack: Error: Parse Error
at Socket.socketOnData (http.js:1583:20)
at TCP.onread (net.js:527:27)
at TCP.<anonymous> (/app/node_modules/newrelic/node_modules/continuation-local-storage/node_modules/async-listener/glue.js:177:31)

Followed immediately by:

 SyntaxError: Unexpected end of input
 Stack: SyntaxError: Unexpected end of input
 at Object.parse (native)
 at IncomingMessage.<anonymous> (/app/lib/server/controllers/app/socket-rates.js:143:30)
at IncomingMessage.emit (events.js:95:17)
at IncomingMessage.<anonymous> (_stream_readable.js:748:14)
at IncomingMessage.emit (events.js:92:17)
at emitReadable_ (_stream_readable.js:410:10)
at emitReadable (_stream_readable.js:406:5)
at readableAddChunk (_stream_readable.js:168:9)
at IncomingMessage.Readable.push (_stream_readable.js:130:10)
at HTTPParser.parserOnBody [as onBody] (http.js:142:22)

We're running Express 3.5 on Heroku and the NR agent is required on line 1.

@groundwater
Copy link
Contributor

Hi @cmoncrief, the second error looks like it's being emitted here /app/lib/server/controllers/app/socket-rates.js. Can you share what's at line 143?

@cmoncrief
Copy link
Author

I missed that completely when I opened this. There's a JSON.parse on that source line which is throwing. This looks like it's on our side, sorry for the trouble!

@groundwater
Copy link
Contributor

No worries 😄

cmcadams-newrelic pushed a commit to cmcadams-newrelic/node-newrelic that referenced this issue Jan 29, 2024
…/error-fingerprinting/follow-redirects-1.15.4
bizob2828 pushed a commit to bizob2828/node-newrelic that referenced this issue Apr 19, 2024
NR-60705 wire up c8 and codecov for coverage collection
bizob2828 pushed a commit to bizob2828/node-newrelic that referenced this issue Apr 23, 2024
NR-60705 wire up c8 and codecov for coverage collection
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