I am testing my multiply_deps project following the Basic dependency tutorial, and this happens:
When I call the motoko canister, it runs well. But when call the rust canister, it gave me this:
An error happened during the call: 5: IC0504: Canister rkp4c-7iaaa-aaaaa-aaaca-cai violated contract: “ic0_call_new” cannot be executed in replicated query mode
2 Likes
Sorry, I think that may actually be a bug in the tutorial, which is using a feature we decided to delay for now (queries that call queries, a.k.a nested queries). I’ve reported the issue.
You may be able to get the example to work by replacing the #[query]
attribute on the Rust function with a #[update]
attribute.
4 Likes
hi, is it fix now? i have the same question .
1 Like