Hello everyone
I’m not able to deploy my app to playground due to failure with internet identity canister, ever since I added login.
I even updated the DFX version (0.20.0) and started dfx as cleaned, but still getting the same error
To fix the original error (not mentioning it here), someone on Discord told me to download II WASM and and to updated my dfx.json but I started getting a different error. After no update there, I have decided to try my luck here
Instruction from Discord
In the field
wasm
, you can see a link, copy that link paste on your browser. A file will be downloaded. then move it to your project folder. usegunzip internet_identity.wasm.gz
. now in thedfx.json
file specify the path to your wasm.
command: dfx deploy --network playground
Error: ****Installing code for canister internet_identity, with canister ID v3x57-gaaaa-aaaab-qadmq-cai
Error: Failed while trying to deploy canisters.
Caused by: Failed while trying to deploy canisters.
Failed while trying to install all canisters.
Failed to install wasm module to canister ‘internet_identity’.
install failed
The replica returned an HTTP Error: Http Error: status 413 Payload Too Large, content type “text/plain; charset=utf-8”, content: Request 0x0a63e26c58725531b333f308de265ffeba8189464c4f424d2f51e2fed83b04ac is too large. Message byte size 3131628 is larger than the max allowed 2097152.
dfx.json
{
“canisters”: {
“icp_app_backend”: {
“main”: “src/icp_app_backend/main.mo”,
“type”: “motoko”
},
“icp_app_frontend”: {
“dependencies”: [
“icp_app_backend”,
“internet_identity”
],
“source”: [
“src/icp_app_frontend/dist”
],
“type”: “assets”,
“workspace”: “icp_app_frontend”
},
“internet_identity”: {
“type”: “custom”,
“candid”: “https://github.com/dfinity/internet-identity/releases/latest/download/internet_identity.did”,
“wasm”: “internet_identity_dev.wasm”,
“remote”: {
“id”: {
“ic”: “rdmx6-jaaaa-aaaaa-aaadq-cai”
}
},
“frontend”: {}
}
},
“defaults”: {
“build”: {
“args”: “”,
“packtool”: “mops sources”
}
},
“output_env_file”: “.env”,
“version”: 1
}