Skip to content

Error during deployment of large size canister modules #273

@wiyota

Description

@wiyota

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions