Skip to content

Document stacktrace for expected error #559

Description

@peterpeterparker

Document:

cause: {
    code: e {
      isCertified: true,
      requestId: [Uint8Array],
      rejectCode: 5,
      rejectMessage: "Error from Canister atbka-rp777-77775-aaaaq-cai: Canister's Wasm module is not valid: Wasm module has an invalid import section. Module imports function 'juno_on_upload_asset_collections' from 'env' that is not exported by the runtime..\n" +
        'If you are running this canister in a test environment (e.g., dfx), make sure the test environment is up to date. Otherwise, this is likely an error with the compiler/CDK toolchain being used to build the canister. Please report the error to IC devs on the forum: https://forum.dfinity.org and include which language/CDK was used to create the canister.',
      rejectErrorCode: 'IC0505',
      name: 'CertifiedRejectErrorCode',
      callContext: [Object]
    },
    kind: 'Reject'
  }

In the FAQ. The reason behin the error is devs removing some hooks and assertions and not following the documentation: https://juno.build/docs/build/functions/development/rust#feature-selection

Source: https://discord.com/channels/1076791076544847982/1076791077308219414/1430548475040497856

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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