Skip to content
Discussion options

You must be logged in to vote

Fixed in HEAD — all three solutions you proposed are implemented, shipping in the next release.

Solution 1 — GRAPHIFY_MAX_GRAPH_BYTES env var

GRAPHIFY_MAX_GRAPH_BYTES=700MB graphify query "..."
GRAPHIFY_MAX_GRAPH_BYTES=2GB graphify html
GRAPHIFY_MAX_GRAPH_BYTES=671088640  # plain bytes also accepted

Accepts plain bytes, <N>MB, or <N>GB (1024-based). Read fresh on every size check, so it can be set in your shell profile, CI env, or .env.

Solution 2 — Better error message
The cap error now tells you exactly what to set:

error: graph file graphify-out/graph.json is 624_595_520 bytes, exceeds 536_870_912-byte cap
(set GRAPHIFY_MAX_GRAPH_BYTES=<bytes> or GRAPHIFY_MAX_GRAPH_BYTES=<N>GB to raise…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@safishamsi
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by safishamsi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants