Skip to content

Errors caused by context cancellation or timeouts are marked "internal" #3032

Open

Description

Current Behavior

When a script is executed and the provided context is cancelled or timed out while looking up data in atree, the error is wrapped as an "internal" error. This results in a debug trace.

This is similar to #2682

Expected Behavior

Since this is an expected error condition, it should return a user error.

Steps To Reproduce

Cancel a context or cause a deadline exceeded error while atree is looking up the register

Environment

- Cadence version: v0.42.6
- Network: mainnet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions