# Issue: Candid Interface Compatibility Warning When Using dfx install

**URL:** <https://forum.dfinity.org/t/issue-candid-interface-compatibility-warning-when-using-dfx-install/32218>\
**Category:** Command Line Tools\
**Tags:** candid, Bug\
**Created:** [June 20, 2024, 3:01pm UTC](https://forum.dfinity.org/t/issue-candid-interface-compatibility-warning-when-using-dfx-install/32218 "2024-06-20T15:01:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![modclub](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/modclub/32/11661_2.png) [@modclub](https://forum.dfinity.org/u/modclub)\
**Post date:** [June 20, 2024, 3:01pm UTC](https://forum.dfinity.org/t/issue-candid-interface-compatibility-warning-when-using-dfx-install/32218/1 "2024-06-20T15:01:04Z")

</div>

We are running into a Candid compatibility error when we use “dfx install”. The issue does not occur when we run “dfx deploy”.

1. Run the following command to upgrade the canister:

`dfx canister install --network=ic --wasm .dfx/local/canisters/auth_dev/auth_dev.wasm.gz --mode upgrade '--argument=(record { modclub_canister_id = xxxxxxxx; })' auth_dev`

1. Noticed the following warning message and prompt:

```auto
Upgrading code for canister auth_dev, with canister ID xxxx-xxxxx-xxxxx

WARNING!

An error occurred during Candid interface compatibility check for canister 'auth_dev'.

Checking generated did file.

Do you want to proceed? yes/No

This prompt will never disappear even if we have selected "yes" in a previous run. This causes issues for us as it fails our CI pipeline.

```

More details with the candid files can be seen here:

> **[Copy of Candid interface compatibility check issue](https://docs.google.com/document/d/1rCRTaecrA6Z-Y6TLsQjF5jTb-aKW_nFaumv1ZRbiY_E/edit?usp=sharing)**
>
> Issue: Candid Interface Compatibility Warning When Using dfx install Reproduce steps Run the following command to upgrade the canister: dfx canister install --network=ic --wasm .dfx/local/canisters/auth\_dev/auth\_dev.wasm.gz --mode upgrade...

We are on dfx 0.20.1

---

<div class="post-metadata">

**Author:** ![modclub](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/modclub/32/11661_2.png) [@modclub](https://forum.dfinity.org/u/modclub)\
**Post date:** [June 21, 2024, 1:03pm UTC](https://forum.dfinity.org/t/issue-candid-interface-compatibility-warning-when-using-dfx-install/32218/2 "2024-06-21T13:03:51Z")

</div>

@diegop Could you help us by tagging a Dfinity member that might know the solution?

---

<div class="post-metadata">

**Author:** ![diegop](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/diegop/32/569_2.png) [@diegop](https://forum.dfinity.org/u/diegop)\
**Post date:** [June 22, 2024, 4:56am UTC](https://forum.dfinity.org/t/issue-candid-interface-compatibility-warning-when-using-dfx-install/32218/3 "2024-06-22T04:56:37Z")

</div>

Yup!

@chenyan any ideas?

---

<div class="post-metadata">

**Author:** ![chenyan](https://avatars.discourse-cdn.com/v4/letter/c/35a633/32.png) [@chenyan](https://forum.dfinity.org/u/chenyan)\
**Post date:** [June 22, 2024, 5:26pm UTC](https://forum.dfinity.org/t/issue-candid-interface-compatibility-warning-when-using-dfx-install/32218/4 "2024-06-22T17:26:23Z")

</div>

The two did files you posted is actually fine. I manually run `didc check new.did old.did`, and didn’t find any breaking changes.

The problem probably comes from the `--wasm` option, where you provided a gzipped wasm. This may prevent dfx from finding the right did file, thus reporting a spurious error. Ping @Vivienne to double check on the dfx side.

One workaround is to remove the `--wasm` option, and add `gzip: true` in `dfx.json`. Then dfx should perform the gzip for you.

---

<div class="post-metadata">

**Author:** ![modclub](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/modclub/32/11661_2.png) [@modclub](https://forum.dfinity.org/u/modclub)\
**Post date:** [June 24, 2024, 2:23pm UTC](https://forum.dfinity.org/t/issue-candid-interface-compatibility-warning-when-using-dfx-install/32218/5 "2024-06-24T14:23:48Z")

</div>

Thanks @chenyan we will try this and report back

---

<div class="post-metadata">

**Author:** ![modclub](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/modclub/32/11661_2.png) [@modclub](https://forum.dfinity.org/u/modclub)\
**Post date:** [June 27, 2024, 2:07pm UTC](https://forum.dfinity.org/t/issue-candid-interface-compatibility-warning-when-using-dfx-install/32218/6 "2024-06-27T14:07:41Z")

</div>

@chenyan We have tested with the gzip flag in dfx.json and we still receive the same error.

---

<div class="post-metadata">

**Author:** ![chenyan](https://avatars.discourse-cdn.com/v4/letter/c/35a633/32.png) [@chenyan](https://forum.dfinity.org/u/chenyan)\
**Post date:** [June 27, 2024, 6:09pm UTC](https://forum.dfinity.org/t/issue-candid-interface-compatibility-warning-when-using-dfx-install/32218/7 "2024-06-27T18:09:52Z")

</div>

You mentioned `dfx deploy` works fine, right? With the gzip option, you can use `dfx deploy` instead.
