Skip to content

Unhandled JSONDecodeError when JSON-LD framing returns empty output #39

Description

@jona42-ui

When frame_nt_content (which calls frame-jsonld.js) returns an empty string which occurs when the jsonld library fails to dereference a custom context URL, or when the N-Triples content is malformed , the call to json.loads(jsonld_compacted) raises an uncaught json.decoder.JSONDecodeError. Flask's default error handler converts this to an unstructured HTTP 500 Internal Server Error with no meaningful message. This affects any GET /things/{id} request for a TD whose custom context URL was unreachable at ingestion or framing time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions