Skip to content

Missing witness field when parsing response from Esplora #570

@cryptoquick

Description

@cryptoquick

Describe the bug

My program has recently started to panic when parsing Esplora responses. Not sure what changed or happened.

I'm provided with this specific error:

panicked at 'called `Result::unwrap()` on an `Err` value: Esplora(Reqwest(reqwest::Error { kind: Decode, source: Error("missing field `witness`", line: 1, column: 1038) }))', src/lib.rs:211:14

To Reproduce

This is from calling unwrap on the result from the wallet constructor.

    let wallet = Wallet::new(
        &descriptor,
        Some(&change_descriptor),
        *NETWORK.read().unwrap(),
        MemoryDatabase::default(),
        blockchain,
    )
    .await?;

Expected behavior

N/A

Build environment

  • BDK tag/commit: 0.16.1
  • OS+version: Arch Linux
  • Rust/Cargo version: 1.59.0
  • Rust/Cargo target: wasm32-unknown-unknown

Additional context

https://github.com/diba-io/bitmask-core/blob/b4db810d90c1e7622e0440769162e08cb2aecc71/src/lib.rs#L211

Screenshot from 2022-03-15 12-57-35

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions