near/near-cli-rs

ViewAccessKeyList fails during near view-account-summary

nadahalli opened this issue · 2 comments

near account view-account-summary ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff network-config mainnet at-block-height 115882964

Here is your console command if you need to script it or re-run:
    near account view-account-summary ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff network-config mainnet at-block-height 115882964

Error: 
   0: Failed to fetch ViewAccessKeyList for ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
   1: internal error: [Some("Failed to serialize JsonRpcError")]

Location:
   src/commands/account/view_account_summary/mod.rs:49

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

frol commented

@nadahalli Thanks for reporting it. The issue is on the RPC side:

image

Further investigation revealed the following internal error:

{
    "error": {
        "cause": {
            "info": {
                "error_message": "MissingTrieValue(TrieStorage, AHmfT2QFqAJEdx9uVJjKeyfwBh4V6b3hrGbrSv17xxYL)"
            },
            "name": "INTERNAL_ERROR"
        },
        "code": -32000,
        "data": "The node reached its limits. Try again later. More details: MissingTrieValue(TrieStorage, AHmfT2QFqAJEdx9uVJjKeyfwBh4V6b3hrGbrSv17xxYL)",
        "message": "Server error",
        "name": "INTERNAL_ERROR"
    },
    "id": "dontcare",
    "jsonrpc": "2.0"
}

The best we can do in this case is to skip printing the information about access keys when we struggle to fetch it

The best we can do in this case is to skip printing the information about access keys when we struggle to fetch it

I'll do this