coffee-tools / folgore

Universal Bitcoin backend for core lightning with BIP 157 support full based on the btcli4j Kotlin plugin! Ah, yes it is written in Rust
BSD 3-Clause "New" or "Revised" License
8 stars 5 forks source link

esplora crash due timeout #46

Closed vincenzopalazzo closed 5 months ago

vincenzopalazzo commented 10 months ago
2023-09-02T18:18:57.699Z UNUSUAL plugin-folgore_plugin: client `bitcoind` return an error: code: -1, msg: JSON-RPC error: JSON decode error: EOF while parsing a string at line 1 column 4439951
2023-09-02T18:19:27.731Z UNUSUAL plugin-folgore_plugin: client `esplora` return an error: code: -1, msg: Ureq(Transport(Transport { kind: Io, message: None, url: Some(Url { scheme: \"https\", cannot_be_a_base: false, username: \"\", password: None, host: Some(Domain(\"mempool.space\")), port: None, path: \"/api/v1//blocks/tip/height\", query: None, fragment: None }), source: Some(Custom { kind: TimedOut, error: \"timed out reading response\" }) }))
2023-09-02T18:19:27.755Z **BROKEN** lightningd: /home/vincent/github/folgore/target/debug/folgore_plugin error: bad response to getrawblockbyheight (bad 'result' field: Parsing '{result:': object does not have member result), response was {"error":{"code":-1,"data":null,"message":"Ureq(Transport(Transport { kind: Io, message: None, url: Some(Url { scheme: \"https\", cannot_be_a_base: false, username: \"\", password: None, host: Some(Domain(\"mempool.space\")), port: None, path: \"/api/v1//blocks/tip/height\", query: None, fragment: None }), source: Some(Custom { kind: TimedOut, error: \"timed out reading response\" }) }))"},"id":"cln:getrawblockbyheight#88","jsonrpc":"2.0"}
2023-09-02T18:19:27.757Z **BROKEN** lightningd: FATAL SIGNAL 6 (version v23.08rc2-1-g1f92911)

This should not happens due the retry strategy

vincenzopalazzo commented 5 months ago

This should be fixed by the retry logic https://github.com/coffee-tools/folgore/pull/63