Skip to content

catch common errors and throw better error messages #522

@arilotter

Description

@arilotter

invalid authorization

 Error: Could not send transaction: Join run, after 3 retries: RPC response error -32002: Transaction simulation failed: Error processing Instruction 0: custom program error: 0xbc4; 5 log messages:
  Program 4SHugWqSXwKE5fqDchkJcPEqnoZE22VYKtSTVm7axbT7 invoke [1]
  Program log: Instruction: JoinRun
  Program log: AnchorError caused by account: authorization. Error Code: AccountNotInitialized. Error Number: 3012. Error Message: The program expected this account to be already initialized.

we should catch this, and since it's unrecoverable, rather than retrying the Solana TX, we should throw a nice error and exit Psyche. We should also prevent the docker wrapper script from auto-rejoining on errors like this.

Metadata

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