Cannot find method type - Incrementing a counter

I followed the tutorial

Everything is fine up to step

When I run dfx canister call my_counter get

It returns error
cannot find method type, dfx will send message with inferred type
Replica error (code 3): IC0302: Canister ic:0100000000000000000000000000000000012D has no update method ‘get’

It seems the the IC does not see my cannister’s methods, any suggestion? :frowning: I have checked the code is OK, the methods are there

Double check it’s a public method in the file, so: public query func get()

1 Like