I get the following error when trying to deploy locally:
Installing code for canister OpenFPL_backend, with canister ID avqkn-guaaa-aaaaa-qaaea-cai
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 'OpenFPL_backend'.
Caused by: Failed during wasm installation call
Caused by: The replica returned a rejection error: reject code CanisterReject, reject message Failed to parse payload for ic00 method install_chunked_code: IC0408: Error decoding candid: Custom(Fail to decode argument 0
I’ve been following the sns-testing repo steps, it used to work… never had this error before. As you can see from the screenshots the testing repo was setup correctly so just wondering if something is required in the OpenFPL repo.
Some dfx versions around 0.18 had wrong install logic for larger wasms. Can you bump dfx in general or use a newer version for that single install call?
This is in a Docker container, right? I meant that you would either use dfx 0.22.0 or a different version >0.19 entirely in Dockerfile. If that doesn’t work (no idea what can break if you do that), then you could also add dfxvm install 0.22.0 to the dockerfile, and then change only the failing call to e.g. dfx +0.22.0 canister install ...
sounds like a version mismatch between the replica and dfx making the request. I’m not sure about the other error you got when downgrading to 0.19.0. My recommendation would be to use a recent dfx version, e.g., the one you have installed locally. You can try to specify the version here and then rerun the install.sh script (step 3) and carry on by starting the replica (step 4), setup_locally.sh (step 5) and finally your test.
And when I search for ic_registry_local_store it can’t find the file anywhere but maybe because it’s a hidden folder someone else or i need to redo a step to get that file?
dfx stores data for the shared local network in one of the following locations, depending on your operating system:
$HOME/.local/share/dfx/network/local (Linux)
$HOME/Library/Application Support/org.dfinity.dfx/network/local (Macos)
So once you run dfx start you should find the ic_registry_local_store there (confirmed with dfx v0.22.0).