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

Fixing some crash and more debug logs #48

Closed vincenzopalazzo closed 10 months ago

vincenzopalazzo commented 10 months ago

See commits

vincenzopalazzo commented 10 months ago

Mh issue still valid

st: Resource temporarily unavailable (os error 11)
2023-09-08T11:32:50.879Z UNUSUAL plugin-folgore_plugin: client `esplora` return an error: code: -1, msg: HttpResponse(404)
2023-09-08T11:32:50.900Z **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":"HttpResponse(404)"},"id":"cln:getrawblockbyheight#305","jsonrpc":"2.0"}
vincenzopalazzo commented 10 months ago
2023-09-09T22:29:16.085Z DEBUG   plugin-folgore_plugin: sending request GET https://mempool.space/api/v1//blocks/tip/height
2023-09-09T22:29:16.115Z DEBUG   plugin-folgore_plugin: writing prelude: GET /api/v1//blocks/tip/height HTTP/1.1\r\nHost: mempool.space\r\nUser-Agent: ureq/2.7.1\r\nAccept: */*\r\naccept-encoding: gzip
2023-09-09T22:29:16.137Z DEBUG   plugin-folgore_plugin: Body entirely buffered (length: 164)
2023-09-09T22:29:16.166Z DEBUG   plugin-folgore_plugin: adding stream to pool: https|mempool.space|443 -> Stream(RustlsStream)
2023-09-09T22:29:16.186Z DEBUG   plugin-folgore_plugin: response 404 to GET https://mempool.space/api/v1//blocks/tip/height
2023-09-09T22:29:16.206Z UNUSUAL plugin-folgore_plugin: client `esplora` return an error: code: -1, msg: HttpResponse(404)
2023-09-09T22:29:16.227Z **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":"HttpResponse(404)"},"id":"cln:getrawblockbyheight#2166","jsonrpc":"2.0"}
2023-09-09T22:29:16.270Z **BROKEN** lightningd: FATAL SIGNAL 6 (version v23.08-17-g990096f)

Note the // inside the URL

vincenzopalazzo commented 10 months ago

maybe related to https://github.com/coffee-tools/folgore/issues/49