Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cli tools to handle the ShardCongested error #11739

Open
jancionear opened this issue Jul 8, 2024 · 1 comment
Open

Update cli tools to handle the ShardCongested error #11739

jancionear opened this issue Jul 8, 2024 · 1 comment
Assignees

Comments

@jancionear
Copy link
Contributor

A user on stake wars telegram reported getting the following error:

Here is your console command if you need to script it or re-run:
    near transaction construct-transaction nadyatar.statelessnet nadyatar.pool.statelessnet add-action function-call ping json-args {} prepaid-gas '100.0 Tgas' attached-deposit '0 NEAR' skip network-config statelessnet sign-with-legacy-keychain send

Error:
   0: error while parsing method call error message: [unknown variant `ShardCongested`, expected one of `InvalidAccessKeyError`, `InvalidSignerId`, `SignerDoesNotExist`, `InvalidNonce`, `NonceTooLarge`, `InvalidReceiverId`, `InvalidSignature`, `NotEnoughBalance`, `LackBalanceForState`, `CostOverflow`, `InvalidChain`, `Expired`, `ActionsValidation`, `TransactionSizeExceeded`]

Location:
   src/transaction_signature_options/send/mod.rs:103

They were trying to run a cli command, but the shard was congested because of a traffic generation test. It looks like the cli doesn't recognize the "ShardCongested" error, it should be updated to handle such errors properly.

/cc @wacban @jakmeier

@jakmeier
Copy link
Contributor

jakmeier commented Jul 8, 2024

Thanks for reporting this!

I'm working on it. I first want it in near-api-js (see this issue near/near-api-js#1358) and then I will see that https://github.com/near/near-cli and https://github.com/near/near-cli-rs get the update as well.

@jakmeier jakmeier self-assigned this Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants