Skip to content

Newly deployed canisters from latest dfx no longer include __get_candid_interface_tmp_hack #113

@bodily11

Description

@bodily11

This is the error when you try to pull the candid directly using the tmp_hack method.

Exception: Canister reject the call: IC0536: Error from Canister rdmx6-jaaaa-aaaaa-aaadq-cai: Canister has no query method '__get_candid_interface_tmp_hack'

If you check on the dashboard, https://dashboard.internetcomputer.org/canister/rdmx6-jaaaa-aaaaa-aaadq-cai, they are still able to pull the candid for the canister. I believe they are doing a raw state call and then parsing the candid from the return object.

I use the Canister(agent=agent, canister_id=canister_id) syntax all the time (super easy/helpful). It would be fantastic if we could automatically try the "__get_candid_interface_tmp_hack", if that doesn't work, do the raw state call and try to parse for the candid, and then if that fails, then we can display an error.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions