Beem: Account.get_tags_used_by_author failed on appbase
Project Information
- Repository: https://github.com/holgern/beem
- Project Name: Beem
- Publisher: @holger80
A GitHub issue and a PR to fix the problem were created. The PO merged the PR with the provided fix:
Expected behavior
Account.get_tags_used_by_author
should return a list of tags or an empty list
Actual behavior
Account.get_tags_used_by_author
fails with an RPC error on appbase nodes:
>>> a.get_tags_used_by_author()
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/beemapi/steemnoderpc.py", line 64, in rpcexec
reply = super(SteemNodeRPC, self).rpcexec(payload)
File "/usr/local/lib/python3.6/site-packages/beemapi/graphenerpc.py", line 409, in rpcexec
raise RPCError(ret['error']['message'])
beemapi.exceptions.RPCError: Assert Exception:acnt != nullptr: Author not found
How to reproduce
from beem.account import Account
from beem import Steem
s = Steem(node=['https://api.steemit.com'])
a = Account('crokkon', steem_instance=s)
print(a.get_tags_used_by_author())
get_tags_used_by_author
requires an argument author
, but previously had the argument account
. By changing account
to author
, the calls now also works on appbase nodes.
Environment
# beempy --version
beempy, version 0.19.50
# python --version
Python 3.6.6
Thank you for contributing to Utopian!
This is quite a bug report you got there.
Created an issue - check
Searched for a solution - check
Suggested soultion as a PR - check
PR merged - check
You really got our category figured out.
I will say that I like to have just a tad bit more context as to what the function is used for.
I'm looking forward for your next contribution.
Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.
To view those questions and the relevant answers related to your post, click here.
Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]
Thank you for your review, @achiron!
So far this week you've reviewed 1 contributions. Keep up the good work!
Hey @stmdev
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!
Want to chat? Join us on Discord https://discord.gg/h52nFrV.
Vote for Utopian Witness!