Can't start whoami example

I want run whoami example, but can’t install canister. my dfx version 0.9.3.
when i run dfx canister install --all
i got

Error: The Replica returned an error: code 5, message: "Canister rrkah-fqaaa-aaaaa-aaaaq-cai trapped explicitly: IDL error: empty input. Expected Candid-encoded argument, but received a zero-length argument"

It looks like that example wants an argument passed in when the canister is installed (the someone : Principal in the actor definition here, it gets returned when you later call the argument() method)


MY_PRINCIPAL=$(dfx identity get-principal)
dfx canister install whoami --argument '(principal "'$MY_PRINCIPAL'")'
1 Like