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

Fix SyntaxError: Unexpected token #1101

Open
MantisClone opened this issue Apr 19, 2023 · 0 comments
Open

Fix SyntaxError: Unexpected token #1101

MantisClone opened this issue Apr 19, 2023 · 0 comments
Labels

Comments

@MantisClone
Copy link
Member

MantisClone commented Apr 19, 2023

Problem

Error is logged on the Gnosis Chain Gateway occasionally (5 times in the last month). https://cloudlogging.app.goo.gl/epKTVHXdXc3hwfp76

Variants:

SyntaxError: Unexpected token u in JSON at position 1
    at JSON.parse (<anonymous>)
    at parse (/node/node_modules/body-parser/lib/types/json.js:89:19)
    at /node/node_modules/body-parser/lib/read.js:121:18
    at invokeCallback (/node/node_modules/raw-body/index.js:224:16)
    at done (/node/node_modules/raw-body/index.js:213:7)
    at IncomingMessage.onEnd (/node/node_modules/raw-body/index.js:273:7)
    at IncomingMessage.emit (node:events:539:35)
    at endReadableNT (node:internal/streams/readable:1345:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
SyntaxError: Unexpected token @ in JSON at position 0
    at JSON.parse (<anonymous>)
    at createStrictSyntaxError (/node/node_modules/body-parser/lib/types/json.js:158:10)
    at parse (/node/node_modules/body-parser/lib/types/json.js:83:15)
    at /node/node_modules/body-parser/lib/read.js:121:18
    at invokeCallback (/node/node_modules/raw-body/index.js:224:16)
    at done (/node/node_modules/raw-body/index.js:213:7)
    at IncomingMessage.onEnd (/node/node_modules/raw-body/index.js:273:7)
    at IncomingMessage.emit (node:events:539:35)
    at endReadableNT (node:internal/streams/readable:1345:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
SyntaxError: Unexpected token t in JSON at position 0
    at JSON.parse (<anonymous>)
    at createStrictSyntaxError (/node/node_modules/body-parser/lib/types/json.js:158:10)
    at parse (/node/node_modules/body-parser/lib/types/json.js:83:15)
    at /node/node_modules/body-parser/lib/read.js:121:18
    at invokeCallback (/node/node_modules/raw-body/index.js:224:16)
    at done (/node/node_modules/raw-body/index.js:213:7)
    at IncomingMessage.onEnd (/node/node_modules/raw-body/index.js:273:7)
    at IncomingMessage.emit (node:events:539:35)
    at endReadableNT (node:internal/streams/readable:1345:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)

Migrated from Asana: https://app.asana.com/0/1203912381456855/1205300970356585/f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🎫 Backlog
Development

No branches or pull requests

1 participant