# Taggr canister has no Candid metadata

**URL:** <https://forum.dfinity.org/t/taggr-canister-has-no-candid-metadata/35086>\
**Category:** Rust\
**Created:** [September 12, 2024, 5:18pm UTC](https://forum.dfinity.org/t/taggr-canister-has-no-candid-metadata/35086 "2024-09-12T17:18:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrx](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/mrx/32/31129_2.png) [@mrx](https://forum.dfinity.org/u/mrx)\
**Post date:** [September 12, 2024, 5:18pm UTC](https://forum.dfinity.org/t/taggr-canister-has-no-candid-metadata/35086/1 "2024-09-12T17:18:34Z")

</div>

Hey everyone,

since months we’re struggling with the issue that the Taggr canister has no Candid interface exposed on the IC dashboard.

The dfx.json file has the “name”: “candid:service” values and the did file gets correctly auto-exported. But for some reason it will not get included in the WASM file.

I have not many clues about what the issue is and would appreciate any help. Thanks!

PS: unfortunately I cannot include links here (probably as a new user), but the source-code repo is linked from the main Taggr-link webpage (see footer).

---

<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 13, 2024, 8:34am UTC](https://forum.dfinity.org/t/taggr-canister-has-no-candid-metadata/35086/2 "2024-09-13T08:34:06Z")

</div>

Hey there

Assuming you mean this repo: [GitHub - TaggrNetwork/Taggr: Decentralized social network and publishing platform.](https://github.com/TaggrNetwork/Taggr)

I just tried it locally and `dfx deploy` followed by `dfx --identity anonymous canister metadata taggr candid:service` returns the .did file just fine.

Suspicion: You have a makefile, `build.sh`, `release.sh`, and maybe something I overlooked. `dfx` only adds the metadata if you call `dfx build`, and the only file that will contain the metadata is in `.dfx/<network>/canisters/<canister name>`. Is this the file you are grabbing after a build? Or are you using the output of `build.sh`, which `dfx` doesn’t touch?

---

<div class="post-metadata">

**Author:** ![mrx](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/mrx/32/31129_2.png) [@mrx](https://forum.dfinity.org/u/mrx)\
**Post date:** [September 13, 2024, 9:16am UTC](https://forum.dfinity.org/t/taggr-canister-has-no-candid-metadata/35086/3 "2024-09-13T09:16:32Z")

</div>

Thanks so much Severin! We definitely do not use this file as I assumed the Candid metadata is addid using `export_candid!()` macro call… I will change the release file to export the dfx build and let you know in a few weeks (we have a pipeline of changes) if it worked.

---

<div class="post-metadata">

**Author:** ![mrx](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/mrx/32/31129_2.png) [@mrx](https://forum.dfinity.org/u/mrx)\
**Post date:** [September 13, 2024, 9:21am UTC](https://forum.dfinity.org/t/taggr-canister-has-no-candid-metadata/35086/4 "2024-09-13T09:21:52Z")

</div>

Actually, what you say does not seem to hold for our staging canister which is deployed like this:

```auto
  staging_deploy:
      NODE_ENV=production DFX_NETWORK=staging make fe
      FEATURES=staging dfx build
      FEATURES=staging dfx --identity prod deploy --network staging taggr

```

This is a very simple deployment only using `build.sh` configured in dfx.json.

Yet, the canister (e4i5g-biaaa-aaaao-ai7ja-cai) has no Candid interface on the IC dashboard…

---

<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 13, 2024, 9:23am UTC](https://forum.dfinity.org/t/taggr-canister-has-no-candid-metadata/35086/5 "2024-09-13T09:23:55Z")

</div>

If you want to check locally if the metadata is included:

```bash
[unzip file somehow]
ic-wasm <file.wasm> metadata # will show metadata sections
ic-wasm <file.wasm> metadata candid:service # will show the content of that section. candid:service is the one the dashboard and all our tooling uses

```

> [@mrx](#):
>
> Yet, the canister (e4i5g-biaaa-aaaao-ai7ja-cai) has no Candid interface on the IC dashboard…

Your dfx.json says

```auto
            "metadata": [
                {
                    "name": "candid:service",
                    "networks": ["local", "ic"],
                    "visibility": "public"
                }
            ]

```

If you add `"staging"` to the networks then I would expect it to show up

---

<div class="post-metadata">

**Author:** ![mrx](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/mrx/32/31129_2.png) [@mrx](https://forum.dfinity.org/u/mrx)\
**Post date:** [September 13, 2024, 9:29am UTC](https://forum.dfinity.org/t/taggr-canister-has-no-candid-metadata/35086/6 "2024-09-13T09:29:51Z")

</div>

You were right! This fixed it and the interface description just appeared for the staging canister!

Now I know what to do for the production release.

Thank you so much, Severin! 🙏

PS: could you please let me know your Taggr nickname if you have one? If not I’ll create an invite for you and then tip you with $TAGGR.
