Darksidewalletd does not tell developers why it failed when a method is invoked
pacu opened this issue · 0 comments
pacu commented
What is the bug?
when running zecwallet-cli against darkside mode, it would fail with an unhelpful message
note: this seed phrase is part of darksidewalletd's test datasets. don't use it for anything else than integration tests.
pacu@pacu zecwallet-light-cli % ./target/debug/zecwallet-cli --server localhost:9067 --birthday 663150 --seed "still champion voice habit trend flight survey between bitter process artefact blind carbon truly provide dizzy crush flush breeze blouse charge solid fish spread" --data-dir "/Users/[user]/cli-tests-asdf"
Lightclient connecting to http://localhost:9067/
thread 'tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: "Error with response: Status { code: Unknown, message: \"there was an attempt to call an unsupported RPC\", metadata: MetadataMap { headers: {\"content-type\": \"application/grpc\"} } }"', lib/src/blaze/trial_decryptions.rs:81:28
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
panic
Ready!
(main) Block:663149 (type 'help') >>
CTRL-C
{
"result": "success"
}
Solution
add the method name to the logs