Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.
This repository was archived by the owner on May 30, 2024. It is now read-only.

Unexpected token { in JSON at position XYZ #82

Description

@magne4000

We have a lot of stacktraces like this one on an Electron project:

SyntaxError Unexpected token { in JSON at position 499 unknown parse
node_modules/ldclient-node/streaming.js:25:26 none
events.js:96:13 emitOne
events.js:191:7 emit
node_modules/ldclient-node/eventsource.js:193:17 _emit
node_modules/ldclient-node/eventsource.js:207:9 parseEventStreamLine
node_modules/ldclient-node/eventsource.js:170:11 none
events.js:96:13 emitOne
events.js:191:7 emit
_stream_readable.js:178:18 readableAddChunk
_stream_readable.js:136:10 push
_http_common.js:123:22 parserOnBody
_http_client.js:411:20 socketOnData
events.js:96:13 emitOne
events.js:191:7 emit
_stream_readable.js:178:18 readableAddChunk
_stream_readable.js:136:10 push
net.js:560:20 onread [as _originalOnread]
node_modules/async-listener/glue.js:188:31 onread

The position of the unexpected token (here 499) varies from client to client, but the error remains the same.
Any clue on what could go wrong, or how I can gather more details ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions