Closed
Description
openedon Nov 3, 2022
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