Skip to content
docs
Arxo ↗

LDC-Q1005 — The snapshot bytes cannot be read as a document

For LLMs5 sections

A snapshot is a document: complete, well-formed bytes the engine can parse before anything else happens. Truncated downloads, mixed encodings, and hand edits that break the shape all stop the load at the read itself, before any row is examined. The message names the file and the reason the read failed.

Restore the file from its source so the bytes parse again, then run the query again. The query text itself is not at fault.

run
{"argv": ["query", "from r in rules select r", "--path", "$ROOT/world.json"], "expect": "LDC-Q1005", "files": {"world.json": "{invalid json"}}
run
{"argv": ["query", "from r in rules select r", "--path", "$ROOT/world.json"], "expect": "LDC-Q1005", "files": {"world.json": "{\"nodes\": [], \"package\": {\"name\": \"demo.diagnostics\", \"namespace\": \"urn:law:demo:diagnostics\"}}"}}

The engine reports this in its own wording:

Output
LDC-Q1005: failed to read CLIR $ROOT/world.json: key must be a string at line 1 column 2.

Documentation for Arxo. Writings — blog.arxo.io.

Anonymous visit counts on stats.arxo.io, no cookies.