[GH-ISSUE #245] SyntaxError: Unexpected token } in JSON at position 444 #200

Closed
opened 2026-02-26 05:31:35 +03:00 by kerem · 2 comments
Owner

Originally created by @johnbritto1 on GitHub (Jul 27, 2020).
Original GitHub issue: https://github.com/NarrativeScience-old/log.io/issues/245

Log.io version: v0.4.16
nodejs v12.18.2
npm v6.14.5

root@mint:~# log.io-file-input
SyntaxError: Unexpected token } in JSON at position 444
at JSON.parse ()
at loadConfig (/usr/lib/node_modules/log.io-file-input/lib/index.js:33:21)
at _callee$ (/usr/lib/node_modules/log.io-file-input/lib/index.js:53:20)
at tryCatch (/usr/lib/node_modules/log.io-file-input/node_modules/regenerator-runtime/runtime.js:63:40)
at Generator.invoke [as _invoke] (/usr/lib/node_modules/log.io-file-input/node_modules/regenerator-runtime/runtime.js:293:22)
at Generator.next (/usr/lib/node_modules/log.io-file-input/node_modules/regenerator-runtime/runtime.js:118:21)
at asyncGeneratorStep (/usr/lib/node_modules/log.io-file-input/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at _next (/usr/lib/node_modules/log.io-file-input/node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
at /usr/lib/node_modules/log.io-file-input/node_modules/@babel/runtime/helpers/asyncToGenerator.js:32:7
at new Promise ()

Originally created by @johnbritto1 on GitHub (Jul 27, 2020). Original GitHub issue: https://github.com/NarrativeScience-old/log.io/issues/245 Log.io version: v0.4.16 nodejs v12.18.2 npm v6.14.5 root@mint:~# log.io-file-input SyntaxError: Unexpected token } in JSON at position 444 at JSON.parse (<anonymous>) at loadConfig (/usr/lib/node_modules/log.io-file-input/lib/index.js:33:21) at _callee$ (/usr/lib/node_modules/log.io-file-input/lib/index.js:53:20) at tryCatch (/usr/lib/node_modules/log.io-file-input/node_modules/regenerator-runtime/runtime.js:63:40) at Generator.invoke [as _invoke] (/usr/lib/node_modules/log.io-file-input/node_modules/regenerator-runtime/runtime.js:293:22) at Generator.next (/usr/lib/node_modules/log.io-file-input/node_modules/regenerator-runtime/runtime.js:118:21) at asyncGeneratorStep (/usr/lib/node_modules/log.io-file-input/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24) at _next (/usr/lib/node_modules/log.io-file-input/node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9) at /usr/lib/node_modules/log.io-file-input/node_modules/@babel/runtime/helpers/asyncToGenerator.js:32:7 at new Promise (<anonymous>)
kerem closed this issue 2026-02-26 05:31:35 +03:00
Author
Owner

@msmathers commented on GitHub (Jul 27, 2020):

You likely have a config file with invalid JSON... Try running your file-input.json through a JSON validator.

<!-- gh-comment-id:664495714 --> @msmathers commented on GitHub (Jul 27, 2020): You likely have a config file with invalid JSON... Try running your `file-input.json` through a JSON validator.
Author
Owner

@johnbritto1 commented on GitHub (Jul 28, 2020):

I copied your sample configuration file and try to validate on jsonlint.com, here is the result.

Error: Parse error on line 20:
... "depth": 99, } } } ]}
----------------------^
Expecting 'STRING', got '}'

There is a typo mistake in your sample configurations file.
"depth": 99, (The extra comma after 99)

Appreciate your work.
Thank you.

<!-- gh-comment-id:664770475 --> @johnbritto1 commented on GitHub (Jul 28, 2020): I copied your sample configuration file and try to validate on jsonlint.com, here is the result. Error: Parse error on line 20: ... "depth": 99, } } } ]} ----------------------^ Expecting 'STRING', got '}' There is a typo mistake in your sample configurations file. "depth": 99, (The extra comma after 99) Appreciate your work. Thank you.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/log.io-NarrativeScience-old#200
No description provided.