-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
The following error occurs when attempting to install a WASM file of several MBs using icp deploy.
Error: agent error: The replica returned an HTTP Error: Http Error: status 413 Payload Too Large, content type "text/plain; charset=utf-8", content: error: payload_too_large
details: Payload is too large: maximum body size is 4194304 bytes.
This can be avoided by changing ManagementCanister.install_code to ManagementCanister.install in install.rs, which automatically applies chunked installation based on the size. However, if this is used on canisters that were manually chunk-installed, it will clear the chunked code storage.
Which approach would be preferable: adding an option like icp deploy --auto-chunk, or switching the standard behavior to automatic chunking as a breaking change?
Metadata
Metadata
Assignees
Labels
No labels