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.
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 anyGET /things/{id}request for a TD whose custom context URL was unreachable at ingestion or framing time.