breez-sdk
breez-sdk copied to clipboard
python, with version 0.2.9.post3 error in receiving a LN payment
When receiving a payment.
creation of invoice -> OK when the invoice is paid, the payment is actually received, but in log i see:
breezerbot | thread 'tokio-runtime-worker' panicked at /home/runner/work/breez-sdk/breez-sdk/libs/target/x86_64-unknown-linux-gnu/release/build/breez_sdk-20ebd4003cca3cf5/out/breez_sdk.uniffi.rs:4732:25:
breezerbot | callback failed. Reason: AttributeError("'NoneType' object has no attribute 'decode'")
breezerbot | note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
this error seems random. sometimes happens and sometimes not
@massmux Are you capturing breez sdk logs? It would help to try and see where that tokio-runtime-worker is panicking.
Are you using version 0.2.9? And are you sure the bindings are ok? The python bindings match the sdk bindings etc?
i am using 0.2.9.post3 python lib, installed with pip
@massmux I'm publishing 0.2.9.post4 The CI for 0.2.9.post3 was inadvertently run on a different commit id than sdk version 0.2.9. Hoping that will fix the issue.
@massmux let me know whether 0.2.9.post4 works correctly.
@JssDWt ok i tested with 0.2.9.post4 as suggested.
when receiving a payment i still get:
breezerbot | thread 'tokio-runtime-worker' panicked at /home/runner/work/breez-sdk/breez-sdk/libs/target/x86_64-unknown-linux-gnu/release/build/breez_sdk-2497059bfe672e60/out/breez_sdk.uniffi.rs:4732:25:
breezerbot | callback failed. Reason: AttributeError("'NoneType' object has no attribute 'decode'")
breezerbot | note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
the payment anyway is gotten but the error is raised
Hi @massmux
Can you point in your BreezerBot repo where you think the error is occurring, maybe in the event handling?
It would be great if you could add logging of the SDK so we can see what's going on. Something like (excuse syntax errors):
class SDKLogStream(breez_sdk.LogStream):
def log(self, l):
if l.level != "TRACE":
print(f"[{l.level}] {l.line}")
...
class Wallet(AddressChecker):
def __init__(self):
...
breez_sdk.set_log_stream(SDKLogStream())
@massmux several things have been fixed in the bindings recently.
Can you please check if you're still seeing this in the latest v0.2.12?
Ok thanks, i will check the 0.2.12 python package then
Any news @massmux ?
Please reopen if you continue to have issues @massmux