<#1081 [Feature]: Show contents of JSON file when ...
# meltano-repo-activity
g
#1081 [Feature]: Show contents of JSON file when loading fails Issue created by edgarrmondragon Feature scope Taps (catalog, state, stream maps, etc.) Description When failing to load a catalog file, the singer SDK doesn't offer too many details as to why the error occurred and users are left with errors like
Expecting value: line 1 column 1 (char 0)
, which are rather non-informative. Perhaps we should handle the JSONDecodeError exception raised by
json.loads
in sdk/singer_sdk/helpers/_util.py Line 22 in</meltano/sdk/commit/bc3ff0825446ddc9e63ebff2c4ac5ecf7c046aa2|bc3ff08> | return cast(dict, json.loads(Path(path).read_text())) | | ----------------------------------------------------- | to display where the error occurred and what's the offending content. See meltano/meltano#6878 meltano/sdk