# Dfx canister --network=ic call canisterId method\_name '(1, 2)' throw a type error

**URL:** https://forum.dfinity.org/t/dfx-canister-network-ic-call-canisterid-method-name-1-2-throw-a-type-error/6602
**Category:** Developers
**Created:** [August 20, 2021, 3:21am UTC](https://forum.dfinity.org/t/dfx-canister-network-ic-call-canisterid-method-name-1-2-throw-a-type-error/6602 "2021-08-20T03:21:06Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![honopu](https://avatars.discourse-cdn.com/v4/letter/h/ecccb3/32.png) [@honopu](https://forum.dfinity.org/u/honopu)
#### Post date: [August 20, 2021, 3:21am UTC](https://forum.dfinity.org/t/dfx-canister-network-ic-call-canisterid-method-name-1-2-throw-a-type-error/6602/1 "2021-08-20T03:21:06Z")

</div>

when i call a ic method, passed two Nat parameters like ‘(1, 2)’.The error message is:  
The Replica returned an error: code 5, message: “Canister trapped explicitly: IDL error: unexpected IDL type when parsing Nat”

---

<div class="post-metadata">

### Author: ![flyq](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/flyq/32/3637_2.png) [@flyq](https://forum.dfinity.org/u/flyq)
#### Post date: [August 20, 2021, 3:39am UTC](https://forum.dfinity.org/t/dfx-canister-network-ic-call-canisterid-method-name-1-2-throw-a-type-error/6602/2 "2021-08-20T03:39:19Z")

</div>

try using `'(1:nat, 2:nat)'`

> **[Internet Computer | Documentation](https://sdk.dfinity.org/docs/candid-guide/candid-types.html#type-int)**
>
> Documentation for the internet computer.
