mirror of
https://github.com/NarrativeScience-old/log.io.git
synced 2026-04-26 01:25:55 +03:00
[GH-ISSUE #245] SyntaxError: Unexpected token } in JSON at position 444 #200
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/log.io-NarrativeScience-old#200
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 ()
@msmathers commented on GitHub (Jul 27, 2020):
You likely have a config file with invalid JSON... Try running your
file-input.jsonthrough a JSON validator.@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.