Skip to content

[Access] Internal error returns for invalid input to GetAccount #3500

Closed

Description

Problem Definition

The GetAccount Access API endpoint returns an Internal grpc status code for all errors except NotFound, including InvalidArguement.

e.g.

rpc error: code = Internal desc = failed to get account from the execution node: 3 errors occurred:
    * rpc error: code = InvalidArgument desc = address [reacted] is invalid for chain flow-mainnet
    * rpc error: code = InvalidArgument desc = address [reacted] is invalid for chain flow-mainnet
    * rpc error: code = InvalidArgument desc = address [reacted] is invalid for chain flow-mainnet

Proposed Solution

Update the error handling code to more accurately reflect the actual error. It should at least detect InvalidArgument errors, and possibly any others that may be returned.

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions