-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Description
Issue Type
Runtime
Context (Environment, Version, Language)
Input Format: json
Output Language: ts
CLI, npm, or app.quicktype.io: CLI
Version: 23.2.6
Description
Using npx quicktype https://storage.flutter-io.cn/flutter_infra_release/releases/releases_linux.json -o test.ts
should generate TS types but instead it throws Error: Syntax error in JSON : .
. I'm assuming the error handling is broken somehow but logging the entire error shows
QuickTypeError: Syntax error in JSON :
at messageError (node_modules/quicktype-core/dist/Messages.js:97:11)
at messageParseError (node_modules/quicktype-core/dist/input/Inputs.js:23:40)
at JSONInput.<anonymous> (node_modules/quicktype-core/dist/input/Inputs.js:68:24)
at Generator.throw (<anonymous>)
at rejected (node_modules/quicktype-core/dist/input/Inputs.js:6:65)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
errorMessage: 'Syntax error in ${description} JSON ${address}: ${message}',
messageName: 'MiscJSONParseError',
userMessage: 'Syntax error in JSON : ',
properties: {
description: 'input',
address: 'releases_linux',
message: 'readStream.setEncoding is not a function'
}
}
Related #2678