commerceblock / mercury

An implementation of statechains
GNU General Public License v3.0
78 stars 12 forks source link

Getting balance results in error #412

Open ssantos21 opened 1 year ago

ssantos21 commented 1 year ago

The cargo run --bin cli -- wallet -b command, for unknown reason so far, sometimes throws the errors below.

In this case, it is necessary to stop the daemon, run it again and run the command again.

thread 'tokio-runtime-worker-0' panicked at 'called `Result::unwrap()` on an `Err` value: Error("missing field `id`", line: 1, column: 256)', client/src/wallet/wallet.rs:537:14

or

thread 'tokio-runtime-worker-0' panicked at 'called `Result::unwrap()` on an `Err` value: Error("invalid value: integer `-1492471`, expected u64", line: 1, column: 76)', client/src/wallet/wallet.rs:537:14

Usually, this last error happens when there is an unconfirmed balance in the wallet, but it is not the only situation in which it happens.