Hi,
We recently upgraded some our wasm to include other canisters with the new dfx version 0.16.
All is good except the unzipped wasm is 39.9 MB (41,866,288 bytes) and on install we get this error:
Error: Failed to install wasm module to canister ‘root’.
Caused by: Failed to install wasm module to canister ‘root’.
Failed during wasm installation call: The replica returned a replica error: reject code CanisterError, reject message Wasm module of canister avqkn-guaaa-aaaaa-qaaea-cai is not valid: Failed to decode wasm module: Wasm module is too large, it can be at most 31457280 bytes, error code None
Going through the forum posts I found this posted in June 2023 Dynamically create a canister from wasm module - #22 by abk
Actually we recently made a change that allows the Wasm module to be 30MB uncompressed as long as the code section is still under 10MB
I’m guessing that check was somehow left in there?
The gzipped wasm is 7.1 mb