Skip to content

Weird error when deleting: Natural subtraction underflow #28

@vporton

Description

@vporton

My software does some puts, attribute modification. Then I try to delete an existing key:

$ dfx canister call ajuq4-ruaaa-aaaaa-qaaga-cai delete '(record{sk="i/1"})'
Warning: The version of DFX used (0.14.1) is different than the version being run (0.16.1).
This might happen because your dfx.json specifies an older version, or DFX_VERSION is set in your environment.
We are forwarding the command line to the old version. To disable this warning, set the DFX_WARNING=-version_check environment variable.

Error: Failed update call.
Caused by: Failed update call.
  The Replica returned an error: code 5, message: "Canister ajuq4-ruaaa-aaaaa-qaaga-cai trapped explicitly: Natural subtraction underflow"

This happens with the latest version of beta, if I did not confuse anything.

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