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 timeout failure #69

Closed vincenzopalazzo closed 4 months ago

vincenzopalazzo commented 4 months ago
2024-03-12T20:53:46.985Z INFO    plugin-folgore_plugin: cln request: {\"txid\":\"dc73cb34650ba9c63d0839723f14f175f49821e7624f2aee7ed70f8249aa7c7c\",\"vout\":0}
2024-03-12T20:53:46.986Z DEBUG   plugin-folgore_plugin: JSON-RPC request: gettxout [\"dc73cb34650ba9c63d0839723f14f175f49821e7624f2aee7ed70f8249aa7c7c\",0]
2024-03-12T20:54:01.998Z DEBUG   plugin-folgore_plugin: JSON-RPC failed parsing reply of gettxout: JsonRpc(Transport(SocketError(Error { kind: TimedOut, message: \"connection timed out\" })))
2024-03-12T20:54:01.998Z UNUSUAL plugin-folgore_plugin: client `bitcoind` return an error: code: -1, msg: JSON-RPC error: transport error: Couldn't connect to host: connection timed out
2024-03-12T20:54:02.101Z INFO    plugin-folgore_plugin: error while looking for tx `dc73cb34650ba9c63d0839723f14f175f49821e7624f2aee7ed70f8249aa7c7c` `[400] Unknown error (expected value at line 1 column 1)`
2024-03-12T20:54:02.101Z INFO    plugin-folgore_plugin: running into retry logic due a request failing. Time `4` waiting `60` secs
2024-03-12T20:55:02.102Z INFO    plugin-folgore_plugin: Waiting timeout end
2024-03-12T20:55:02.499Z INFO    plugin-folgore_plugin: error while looking for tx `dc73cb34650ba9c63d0839723f14f175f49821e7624f2aee7ed70f8249aa7c7c` `[400] Unknown error (expected value at line 1 column 1)`
2024-03-12T20:55:02.500Z INFO    plugin-folgore_plugin: running into retry logic due a request failing. Time `4` waiting `120` secs
2024-03-12T20:57:02.500Z INFO    plugin-folgore_plugin: Waiting timeout end
2024-03-12T20:57:02.607Z INFO    plugin-folgore_plugin: error while looking for tx `dc73cb34650ba9c63d0839723f14f175f49821e7624f2aee7ed70f8249aa7c7c` `[400] Unknown error (expected value at line 1 column 1)`
2024-03-12T20:57:02.607Z INFO    plugin-folgore_plugin: running into retry logic due a request failing. Time `4` waiting `240` secs
2024-03-12T21:01:02.607Z INFO    plugin-folgore_plugin: Waiting timeout end
2024-03-12T21:01:03.154Z INFO    plugin-folgore_plugin: error while looking for tx `dc73cb34650ba9c63d0839723f14f175f49821e7624f2aee7ed70f8249aa7c7c` `[400] Unknown error (expected value at line 1 column 1)`
2024-03-12T21:01:03.154Z INFO    plugin-folgore_plugin: running into retry logic due a request failing. Time `4` waiting `480` secs
2024-03-12T21:09:03.154Z INFO    plugin-folgore_plugin: Waiting timeout end
2024-03-12T21:09:03.260Z INFO    plugin-folgore_plugin: error while looking for tx `dc73cb34650ba9c63d0839723f14f175f49821e7624f2aee7ed70f8249aa7c7c` `[400] Unknown error (expected value at line 1 column 1)`
2024-03-12T21:09:03.260Z INFO    plugin-folgore_plugin: running into retry logic due a request failing. Time `4` waiting `960` secs
2024-03-12T21:09:03.261Z INFO    plugin-folgore_plugin: we try 4 times the request but the error persist
2024-03-12T21:09:03.261Z DEBUG   plugin-folgore_plugin: Error during the recovery strategy: `Some(PluginError { code: -1, msg: \"[400] Unknown error (expected value at line 1 column 1)\", data: None })`
2024-03-12T21:09:03.261Z UNUSUAL plugin-folgore_plugin: client `esplora` return an error: code: -1, msg: Recovery strategy (TimeoutRety) fails: `code: -1, msg: [400] Unknown error (expected value at line 1 column 1)`
2024-03-12T21:09:03.261Z DEBUG   plugin-folgore_plugin: Err(PluginError { code: -1, msg: \"Recovery strategy (TimeoutRety) fails: `code: -1, msg: [400] Unknown error (expected value at line 1 column 1)`\", data: None })

Esplora during the timeout return not a json value so we will have problems with this