# SNS-Testing: Failed to parse payload for ic00 method install\_chunked\_code

**URL:** <https://forum.dfinity.org/t/sns-testing-failed-to-parse-payload-for-ic00-method-install-chunked-code/35130>\
**Category:** Developers\
**Tags:** sns\
**Created:** [September 13, 2024, 6:00pm UTC](https://forum.dfinity.org/t/sns-testing-failed-to-parse-payload-for-ic00-method-install-chunked-code/35130 "2024-09-13T18:00:16Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamesbeadle](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jamesbeadle/32/10110_2.png) [@jamesbeadle](https://forum.dfinity.org/u/jamesbeadle)\
**Post date:** [September 13, 2024, 6:00pm UTC](https://forum.dfinity.org/t/sns-testing-failed-to-parse-payload-for-ic00-method-install-chunked-code/35130/1 "2024-09-13T18:00:16Z")

</div>

I get the following error when trying to deploy locally:

```auto

Installing code for canister OpenFPL_backend, with canister ID avqkn-guaaa-aaaaa-qaaea-cai
Error: Failed while trying to deploy canisters.
Caused by: Failed while trying to install all canisters.
Caused by: Failed to install wasm module to canister 'OpenFPL_backend'.
Caused by: Failed during wasm installation call
Caused by: The replica returned a rejection error: reject code CanisterReject, reject message Failed to parse payload for ic00 method install_chunked_code: IC0408: Error decoding candid: Custom(Fail to decode argument 0

```

I’ve been following the sns-testing repo steps, it used to work… never had this error before. As you can see from the screenshots the testing repo was setup correctly so just wondering if something is required in the OpenFPL repo.

 ![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/8/b/8ba4860efe5af304edd5e00c5c6017125979becf.png)

---

<div class="post-metadata">

**Author:** ![jamesbeadle](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jamesbeadle/32/10110_2.png) [@jamesbeadle](https://forum.dfinity.org/u/jamesbeadle)\
**Post date:** [September 14, 2024, 4:38am UTC](https://forum.dfinity.org/t/sns-testing-failed-to-parse-payload-for-ic00-method-install-chunked-code/35130/2 "2024-09-14T04:38:21Z")

</div>

I think it’s because the sns-testing repo uses dfx 0.19.0 and my system is on 0.22.0.

When I switch to 0.19.0 I get the following error:

 ![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/4/f/4f50cc18f6dcd1c0b7da6aa942aabd4ffdb6d025.png)

Specifically:  
table: type table0 = vec table1  
type table1 = record { 1\_158\_164\_430 : table2 }  
type table2 = vec nat8  
wire\_type: record { 1\_158\_164\_430 : table2 }, expect\_type: unknown

---

<div class="post-metadata">

**Author:** ![jamesbeadle](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jamesbeadle/32/10110_2.png) [@jamesbeadle](https://forum.dfinity.org/u/jamesbeadle)\
**Post date:** [September 15, 2024, 7:01pm UTC](https://forum.dfinity.org/t/sns-testing-failed-to-parse-payload-for-ic00-method-install-chunked-code/35130/3 "2024-09-15T19:01:13Z")

</div>

Hello, I’m just bumping this using 20 characters.

---

<div class="post-metadata">

**Author:** ![Vivienne](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/vivienne/32/29170_2.png) [@Vivienne](https://forum.dfinity.org/u/Vivienne)\
**Post date:** [September 16, 2024, 7:16am UTC](https://forum.dfinity.org/t/sns-testing-failed-to-parse-payload-for-ic00-method-install-chunked-code/35130/4 "2024-09-16T07:16:58Z")

</div>

Some dfx versions around 0.18 had wrong install logic for larger wasms. Can you bump dfx in general or use a newer version for that single `install` call?

---

<div class="post-metadata">

**Author:** ![jamesbeadle](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jamesbeadle/32/10110_2.png) [@jamesbeadle](https://forum.dfinity.org/u/jamesbeadle)\
**Post date:** [September 16, 2024, 7:53am UTC](https://forum.dfinity.org/t/sns-testing-failed-to-parse-payload-for-ic00-method-install-chunked-code/35130/5 "2024-09-16T07:53:52Z")

</div>

Hi @Vivienne,

I’m not sure what you meean by ‘bump dfx in general’ or use a different version for a call.

I would need to follow some kind of documentation as everything I know has come from the existing documentation.

If you could provide me the resources to perform these tasks and get the site testable with the current SNS testing repo, that would be great.

Happy to do the leg work but just not sure where to start.

---

<div class="post-metadata">

**Author:** ![Vivienne](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/vivienne/32/29170_2.png) [@Vivienne](https://forum.dfinity.org/u/Vivienne)\
**Post date:** [September 16, 2024, 11:37am UTC](https://forum.dfinity.org/t/sns-testing-failed-to-parse-payload-for-ic00-method-install-chunked-code/35130/6 "2024-09-16T11:37:45Z")

</div>

This is in a Docker container, right? I meant that you would either use dfx 0.22.0 or a different version \>0.19 entirely in `Dockerfile`. If that doesn’t work (no idea what can break if you do that), then you could also add `dfxvm install 0.22.0` to the dockerfile, and then change only the failing call to e.g. `dfx +0.22.0 canister install ...`

---

<div class="post-metadata">

**Author:** ![jamesbeadle](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jamesbeadle/32/10110_2.png) [@jamesbeadle](https://forum.dfinity.org/u/jamesbeadle)\
**Post date:** [September 16, 2024, 11:54am UTC](https://forum.dfinity.org/t/sns-testing-failed-to-parse-payload-for-ic00-method-install-chunked-code/35130/7 "2024-09-16T11:54:17Z")

</div>

Thanks Severin will give this a go

---

<div class="post-metadata">

**Author:** ![jamesbeadle](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jamesbeadle/32/10110_2.png) [@jamesbeadle](https://forum.dfinity.org/u/jamesbeadle)\
**Post date:** [September 16, 2024, 12:20pm UTC](https://forum.dfinity.org/t/sns-testing-failed-to-parse-payload-for-ic00-method-install-chunked-code/35130/8 "2024-09-16T12:20:41Z")

</div>

> [@Vivienne](#):
>
> This is in a Docker container, right

So because my mac is new, from the sns-testing repo:

the ‘solution is based on Docker and is currently [not supported on Apple silicon systems](https://github.com/dfinity/sns-testing/blob/main/README.md#apple-silicon)\*’

So I didn’t use docker, is there a solution for the ’ Special instructions for Apple silicon users’?

---

<div class="post-metadata">

**Author:** ![Vivienne](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/vivienne/32/29170_2.png) [@Vivienne](https://forum.dfinity.org/u/Vivienne)\
**Post date:** [September 16, 2024, 1:29pm UTC](https://forum.dfinity.org/t/sns-testing-failed-to-parse-payload-for-ic00-method-install-chunked-code/35130/9 "2024-09-16T13:29:07Z")

</div>

No idea, but probably not. @mraszyk would know best I guess

---

<div class="post-metadata">

**Author:** ![mraszyk](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/mraszyk/32/7945_2.png) [@mraszyk](https://forum.dfinity.org/u/mraszyk)\
**Post date:** [September 16, 2024, 2:08pm UTC](https://forum.dfinity.org/t/sns-testing-failed-to-parse-payload-for-ic00-method-install-chunked-code/35130/10 "2024-09-16T14:08:43Z")

</div>

> [@jamesbeadle](#):
>
> `The replica returned a rejection error: reject code CanisterReject, reject message Failed to parse payload for ic00 method install_chunked_code: IC0408: Error decoding candid: Custom(Fail to decode argument 0`

sounds like a version mismatch between the replica and dfx making the request. I’m not sure about the other error you got when downgrading to 0.19.0. My recommendation would be to use a recent dfx version, e.g., the one you have installed locally. You can try to specify the version [here](https://github.com/dfinity/sns-testing/blob/ff2a12c2e4212838ec0ce1f00c40e109f08d3b71/settings.sh#L38) and then rerun the `install.sh` script (step 3) and carry on by starting the replica (step 4), setup\_locally.sh (step 5) and finally your test.

---

<div class="post-metadata">

**Author:** ![jamesbeadle](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jamesbeadle/32/10110_2.png) [@jamesbeadle](https://forum.dfinity.org/u/jamesbeadle)\
**Post date:** [September 16, 2024, 2:32pm UTC](https://forum.dfinity.org/t/sns-testing-failed-to-parse-payload-for-ic00-method-install-chunked-code/35130/11 "2024-09-16T14:32:15Z")

</div>

Updated the settings.sh to have the latest dfx im on, 0.22.0.

 ![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/1/c/1ca638d300704a29f9fcbdf6ee8874cfb8453fea.jpeg)

When I try to run the setup\_locally.sh after it says local registry not found…

---

<div class="post-metadata">

**Author:** ![jamesbeadle](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jamesbeadle/32/10110_2.png) [@jamesbeadle](https://forum.dfinity.org/u/jamesbeadle)\
**Post date:** [September 16, 2024, 2:48pm UTC](https://forum.dfinity.org/t/sns-testing-failed-to-parse-payload-for-ic00-method-install-chunked-code/35130/12 "2024-09-16T14:48:19Z")

</div>

Also a destination invalid error in the terminal running the replica

 ![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/4/e/4e37110f6717aca2cc236ce7269c0e5fcf490a2e.png)

Not sure if related but not sure I’ve seen that before either.

---

<div class="post-metadata">

**Author:** ![mraszyk](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/mraszyk/32/7945_2.png) [@mraszyk](https://forum.dfinity.org/u/mraszyk)\
**Post date:** [September 16, 2024, 2:58pm UTC](https://forum.dfinity.org/t/sns-testing-failed-to-parse-payload-for-ic00-method-install-chunked-code/35130/13 "2024-09-16T14:58:45Z")

</div>

On linux, you can changing this [line](https://github.com/dfinity/sns-testing/blob/ff2a12c2e4212838ec0ce1f00c40e109f08d3b71/constants.sh#L126) to:

```auto
REGISTRY=$(find "${HOME}/.local/share/dfx/network/local" -name ic_registry_local_store)

```

On a Mac, it’d be a few lines above:

```auto
REGISTRY="$(find "${HOME}/Library/Application Support/org.dfinity.dfx/network/local/state/replicated_state/ic_registry_local_store" -name ic_registry_local_store)"

```

---

<div class="post-metadata">

**Author:** ![jamesbeadle](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jamesbeadle/32/10110_2.png) [@jamesbeadle](https://forum.dfinity.org/u/jamesbeadle)\
**Post date:** [September 16, 2024, 3:11pm UTC](https://forum.dfinity.org/t/sns-testing-failed-to-parse-payload-for-ic00-method-install-chunked-code/35130/14 "2024-09-16T15:11:47Z")

</div>

> [@mraszyk](#):
>
> ```auto
> REGISTRY="$(find "${HOME}/Library/Application Support/org.dfinity.dfx/network/local/state/replicated_state/ic_registry_local_store" -name ic_registry_local_store)"
> 
> ```

So using this on the line a few lines above:

 ![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/0/a/0a409f4fb03f4f46ee0a2f5aa405f199b1d977bc.png)

![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/1/2/12355d0066c4bd464c186e6e3b66e0e672c43e16.png)

I get a new error, do I need to run from a different point to download any files? I added that line and ran ./setup\_locally.sh

---

<div class="post-metadata">

**Author:** ![mraszyk](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/mraszyk/32/7945_2.png) [@mraszyk](https://forum.dfinity.org/u/mraszyk)\
**Post date:** [September 16, 2024, 3:28pm UTC](https://forum.dfinity.org/t/sns-testing-failed-to-parse-payload-for-ic00-method-install-chunked-code/35130/15 "2024-09-16T15:28:13Z")

</div>

Please try the few prefixes on your laptop to see where the registry local store is for you and insert find there:

```auto
REGISTRY=".dfx/network/local/state/replicated_state/ic_registry_local_store"
REGISTRY="${HOME}/Library/Application Support/org.dfinity.dfx/network/local/state/replicated_state/ic_registry_local_store"
REGISTRY="${HOME}/.local/share/dfx/network/local/state/replicated_state/ic_registry_local_store"

```

---

<div class="post-metadata">

**Author:** ![jamesbeadle](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jamesbeadle/32/10110_2.png) [@jamesbeadle](https://forum.dfinity.org/u/jamesbeadle)\
**Post date:** [September 16, 2024, 3:34pm UTC](https://forum.dfinity.org/t/sns-testing-failed-to-parse-payload-for-ic00-method-install-chunked-code/35130/16 "2024-09-16T15:34:53Z")

</div>

> [@mraszyk](#):
>
> ```auto
> REGISTRY=".dfx/network/local/state/replicated_state/ic_registry_local_store"
> 
> ```

The .dfx folder in the sns-testing repo is empty:  
 ![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/b/f/bfb92fc8a1126e210419b4e11af4e380468ee939.png)

And when I search for ic\_registry\_local\_store it can’t find the file anywhere but maybe because it’s a hidden folder someone else or i need to redo a step to get that file?

 ![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/2/8/287f51a06cec0b93173c203f453488d075aa38be.png)

---

<div class="post-metadata">

**Author:** ![jamesbeadle](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jamesbeadle/32/10110_2.png) [@jamesbeadle](https://forum.dfinity.org/u/jamesbeadle)\
**Post date:** [September 16, 2024, 3:36pm UTC](https://forum.dfinity.org/t/sns-testing-failed-to-parse-payload-for-ic00-method-install-chunked-code/35130/17 "2024-09-16T15:36:37Z")

</div>

> [@mraszyk](#):
>
> ```auto
> REGISTRY="${HOME}/.local/share/dfx/network/local/state/replicated_state/ic_registry_local_store"
> 
> ```

I also tried all 3 of these and got the same error.

---

<div class="post-metadata">

**Author:** ![mraszyk](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/mraszyk/32/7945_2.png) [@mraszyk](https://forum.dfinity.org/u/mraszyk)\
**Post date:** [September 16, 2024, 3:48pm UTC](https://forum.dfinity.org/t/sns-testing-failed-to-parse-payload-for-ic00-method-install-chunked-code/35130/18 "2024-09-16T15:48:44Z")

</div>

The `dfx start` [docs](https://github.com/dfinity/sdk/blob/master/docs/cli-reference/dfx-start.mdx#local-server-configuration) say:

```auto
dfx stores data for the shared local network in one of the following locations, depending on your operating system:

$HOME/.local/share/dfx/network/local (Linux)
$HOME/Library/Application Support/org.dfinity.dfx/network/local (Macos)

```

So once you run `dfx start` you should find the `ic_registry_local_store` there (confirmed with dfx v0.22.0).

---

<div class="post-metadata">

**Author:** ![jamesbeadle](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jamesbeadle/32/10110_2.png) [@jamesbeadle](https://forum.dfinity.org/u/jamesbeadle)\
**Post date:** [September 16, 2024, 3:54pm UTC](https://forum.dfinity.org/t/sns-testing-failed-to-parse-payload-for-ic00-method-install-chunked-code/35130/19 "2024-09-16T15:54:31Z")

</div>

Thanks for pointing me to the folder, when I list the files I don’t see the ic\_registry\_local\_store file:

 ![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/0/2/0211551e27437aac02a51957c1edabf908524af0.png)

---

<div class="post-metadata">

**Author:** ![mraszyk](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/mraszyk/32/7945_2.png) [@mraszyk](https://forum.dfinity.org/u/mraszyk)\
**Post date:** [September 16, 2024, 4:05pm UTC](https://forum.dfinity.org/t/sns-testing-failed-to-parse-payload-for-ic00-method-install-chunked-code/35130/20 "2024-09-16T16:05:27Z")

</div>

It isn’t a direct subfolder, that’s why I used the `find` command to find it recursively within a subfolder.

[Next page](https://forum.dfinity.org/t/sns-testing-failed-to-parse-payload-for-ic00-method-install-chunked-code/35130.md?page=2)
