Skip to content

alasql.promise never settles for TXT with a missing file or JSONL and NDJSON with a bad line #3142

Backlog

Description

@mathiasrw
// bad.jsonl holds the two lines {"a":1} and not json
await alasql.promise("SELECT * FROM TXT('missing.txt')");
await alasql.promise("SELECT * FROM JSONL('bad.jsonl')");
await alasql.promise("SELECT * FROM NDJSON('bad.jsonl')");

None of the three promises settles. The errors error is not a function and Could not parse JSON at line 1 are thrown as uncaught exceptions.

Each promise should reject with the error, as JSON('missing.json') and CSV('missing.csv') do.

Fixed by #2677.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions