Invalid data: Expected arguments but found none

Does someone knows upon deployment (dfx deploy) why and when the error Invalid data: Expected arguments but found none. can occur?

I don’t have any particular stacktrace about it, don’t notice any particular error in my console and it happens randomly, means same builds are also successful.

1 Like

Check the actor constructor of the canister that you are going to deploy/install. If there are arguments inside, you have to add the --argument flag with the values.

Yes indeed, forgot to close this question. Thanks for your hint!

The solution finds place in Encode Principal to Candid arguments - #10 by peterparker and Encode Principal to Candid arguments - #7 by peterparker

1 Like

dfx deploy not running.help with this.

What happens if you try the above solution?