# Install\_code actor class leads to error "empty input" and "too few arguments"

**URL:** <https://forum.dfinity.org/t/install-code-actor-class-leads-to-error-empty-input-and-too-few-arguments/8984>\
**Category:** Developers\
**Created:** [November 21, 2021, 9:18am UTC](https://forum.dfinity.org/t/install-code-actor-class-leads-to-error-empty-input-and-too-few-arguments/8984 "2021-11-21T09:18:43Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [January 24, 2022, 9:40pm UTC](https://forum.dfinity.org/t/install-code-actor-class-leads-to-error-empty-input-and-too-few-arguments/8984/7 "2022-01-24T21:40:32Z")

</div>

Took me more than a night of sleep 😉.

Yes indeed @levi was correct, it needed a candid-parameter to update the code of the canister because my canister constructor takes a parameter, the user principal.

That solved this question but then I had to encode the parameters. This was solved today in my following question: [Encode Principal to Candid arguments - #10 by peterparker](https://forum.dfinity.org/t/encode-principal-to-candid-arguments/10465/10)

---

_[View the full topic](https://forum.dfinity.org/t/install-code-actor-class-leads-to-error-empty-input-and-too-few-arguments/8984)._
