Skip to content

fix: increase max_request_body_size to 15 MiB#553

Merged
MicaiahReid merged 1 commit intosolana-foundation:zk-edgefrom
arcium-hq:fix/max-request-body-size
Mar 19, 2026
Merged

fix: increase max_request_body_size to 15 MiB#553
MicaiahReid merged 1 commit intosolana-foundation:zk-edgefrom
arcium-hq:fix/max-request-body-size

Conversation

@arihantbansal
Copy link
Copy Markdown
Contributor

Summary

  • Increases jsonrpc_http_server max_request_body_size from the default 5 MiB to 15 MiB

Problem

Solana accounts can be up to 10 MB. When the txtx runbook engine executes set_account directives via surfnet_setAccount JSON-RPC calls (self-loopback to the HTTP server), large accounts — such as circuit buffer accounts — get hex/base64-encoded in the JSON-RPC envelope, reaching ~13.5 MB. This exceeds the default 5 MiB limit, causing HTTP 413 responses.

Fix

One-line change: .max_request_body_size(15 * 1024 * 1024) on the ServerBuilder. 15 MiB accommodates the largest possible Solana account with encoding overhead and headroom.

Solana accounts can be up to 10 MB. With base64/hex encoding overhead,
the JSON-RPC payload for a max-size account reaches ~13.5 MB, exceeding
the default 5 MiB limit and causing HTTP 413 during surfnet_setAccount
runbook execution. 15 MiB accommodates the largest possible account
with headroom.
Copy link
Copy Markdown
Collaborator

@MicaiahReid MicaiahReid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LFG, thanks @arihantbansal, sorry for the delay!

@MicaiahReid MicaiahReid merged commit 2d983a4 into solana-foundation:zk-edge Mar 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants