← Back to list
01Issue
BugOpenSwamp CLIPublic
AssigneesNone
Relationships
#4944 swamp data get --json fails with Invalid string length on one record whose pretty-printed content passes V8's string limit
Opened by zack · 11/20/2026
The data get renderer (src/presentation/renderers/data_get.ts) prints a record with JSON.stringify(value, null, 2) as one string. Indenting expands content: a 223 MB compact JSON resource prints as 374 MB, so a resource of about 320 MB compact passes V8's maximum string length (about 512 MiB) and data get fails with a bare Invalid string length error. Found while triaging swamp-club#4940, whose fix streams data query output through writeJsonValue in src/presentation/output/json_stream.ts. data get can take the same approach: write the document in chunks with the same bytes as today.
02Bog Flow
Open
No activity in this phase yet.
03Sludge Pulse
Sign in to post a ripple.