Closed kiwiidb closed 2 months ago
This looks like Sauron may end up in some cases not returning a valid json string, for example this could happen if the download fails for some reason. Sauron should likely catch these cases and retry after a bit, or use another backend until the original backend returns to normal.
Running sauron like this:
lightningd --mainnet --disable-plugin bcli --plugin $PWD/sauron/sauron.py --sauron-api-endpoint https://blockstream.info/api/
After running for a while it crashes with:
/home/cln/plugins/sauron/sauron.py error: bad response to getutxout (bad 'result' field: Parsing '{result:': object does not have member result), response was {"jsonrpc": "2.0", "id": 470, "error": {"code": -32600, "message": "Error while processing getutxout: ('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read))"
It looks like @darosior fixed this in https://github.com/lightningd/plugins/pull/297.
Thanks @ca-ruz ! This indeed seems to be fixed now. Feel free to reopen if it's not.
I tried to get c-lightning to work using the sauron plugin, but it keeps crashing from time to time with the following logs:
I am using the Dockerfile from this repository (with a small tweak to make it work ) , and run it with:
docker run lightningd --disable-plugin bcli --plugin /opt/lightningd/plugins/sauron/sauron.py --sauron-api-endpoint https://blockstream.info/api --log-level debug
It seems that after a while, when c-lightning is up-to-data with the chain tip, there are no more crashes.