Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while processing summary: 'int' object has no attribute 'to_btc_str' #5546

Closed
overcoin opened this issue Aug 24, 2022 · 0 comments · Fixed by #5574
Closed

Error while processing summary: 'int' object has no attribute 'to_btc_str' #5546

overcoin opened this issue Aug 24, 2022 · 0 comments · Fixed by #5574

Comments

@overcoin
Copy link

overcoin commented Aug 24, 2022

Issue and Steps to Reproduce

lightning-cli summary

{
   "code": -32600,
   "message": "Error while processing summary: 'int' object has no attribute 'to_btc_str'",
   "traceback": "Traceback (most recent call last):\n  File \"/home/XXX/.local/lib/python3.9/site-packages/pyln/client/plugin.py\", line 627, in _dispatch_request\n    result = self._exec_func(method.func, request)\n  File \"/home/XXX/.local/lib/python3.9/site-packages/pyln/client/plugin.py\", line 609, in _exec_func\n    return func(*ba.args, **ba.kwargs)\n  File \"/home/XXX/plugins/summary/summary.py\", line 169, in summary\n    reply['fees_collected'] = info['fees_collected_msat'].to_btc_str()\nAttributeError: 'int' object has no attribute 'to_btc_str'\n"
}

getinfo output

"version": "v0.12.0"

rustyrussell added a commit to rustyrussell/lightning that referenced this issue Sep 6, 2022
This happens with deprecated-apis and listconfigs, breaking some
python plugins!

Fixes: ElementsProject#5546
Fixes: ElementsProject#5563
Signed-off-by: Rusty Russell <[email protected]>
rustyrussell added a commit that referenced this issue Sep 7, 2022
This happens with deprecated-apis and listconfigs, breaking some
python plugins!

Fixes: #5546
Fixes: #5563
Signed-off-by: Rusty Russell <[email protected]>
whitslack pushed a commit to whitslack/lightning that referenced this issue Oct 8, 2022
This happens with deprecated-apis and listconfigs, breaking some
python plugins!

Fixes: ElementsProject#5546
Fixes: ElementsProject#5563
Signed-off-by: Rusty Russell <[email protected]>
whitslack pushed a commit to whitslack/lightning that referenced this issue Oct 28, 2022
This happens with deprecated-apis and listconfigs, breaking some
python plugins!

Fixes: ElementsProject#5546
Fixes: ElementsProject#5563
Signed-off-by: Rusty Russell <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant