Error: Failed while trying to deploy canisters.
Caused by: Failed while trying to install all canisters.
Caused by: Failed to install wasm module to canister ‘internet_identity’.
Caused by: The replica returned a rejection error: reject code CanisterReject, reject message IC0504: Error from Canister ozk6r-tyaaa-aaaab-qab4a-cai: Canister violated contract: ic0.msg_reply_data_append: application payload size (4078418) cannot be larger than 2097152..
Consider checking the response size and returning an error if it is too long.
Environment Details:
Works: Local development (dfx start) and Mainnet (dfx deploy --network ic)
Fails: IC Playground (dfx deploy --network playground)
tl:dr: Deployment works on local and mainnet networks but fails to deploy on playground
The playground cannot handle the same canister sizes as mainnet or local. Before installation the playground sends the wasm-to-be-installed to a different canister todo some checks/modifications on it. It looks like your wasm is simply too big to be returned to the main playground again. Usually this fails because it costs too many instructions to process ‘large’ wasms…
The size of my canisters are relatively small, the problem is with the internet identity canister. Is there a way to test the Internet identity functionality without deploying the whole app to mainnet?
Here’s how you can add II as a dependency without installing it yourself on mainnet. If you duplicate the field remote.id.ic
to remote.id.playground
dfx will also only link to the existing canister and not try to install it itself
1 Like
Yup, this works, thank you!
One last question, when I try to hit the “login” button on the far right of the candid interface when deploying locally it doesn’t do anything, is that the expected behavior?
Nothing happens for me too, but I don’t know how to fix it 
1 Like