Probably a known issue by now but...

avatar
(Edited)

Our bot is throwing errors attempting to access the reputation API to no surprise as you can see that we are 25 on the front ends.

We are all equal

Actually, I kind of like it considering there are so many unsavory individuals that have amassed large reputations via inorganic means without merit. This is fine.


Had to steal the meme @enforcer48 shared. Uh oh!


This one was @memehub's. 2 for 1 special! hehe

Ok, anyways, it's movie night so here's the error. I'm clocking out.

Traceback (most recent call last):
  File "/home/sfr/miniconda3/lib/python3.6/site-packages/beemapi/steemnoderpc.py", line 64, in rpcexec
    reply = super(SteemNodeRPC, self).rpcexec(payload)
  File "/home/sfr/miniconda3/lib/python3.6/site-packages/beemapi/graphenerpc.py", line 427, in rpcexec
    raise RPCError(ret['error']['message'])
beemapi.exceptions.RPCError: Assert Exception:api_itr != _registered_apis.end(): Could not find API follow_api

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/sfr/miniconda3/lib/python3.6/site-packages/discord/ext/commands/core.py", line 61, in wrapped
    ret = await coro(*args, **kwargs)
  File "sfrbot-token-bot-v7.py", line 1093, in status
    embed.add_field(name='Reputation', value=round(sfr.get_reputation(), 3), inline=False)
  File "/home/sfr/miniconda3/lib/python3.6/site-packages/beem/account.py", line 394, in get_reputation
    rep = self.steem.rpc.get_account_reputations({'account_lower_bound': self["name"], 'limit': 1}, api="follow")['reputations']
  File "/home/sfr/miniconda3/lib/python3.6/site-packages/beemapi/graphenerpc.py", line 478, in method
    r = self.rpcexec(query)
  File "/home/sfr/miniconda3/lib/python3.6/site-packages/beemapi/steemnoderpc.py", line 86, in rpcexec
    doRetry = self._check_error_message(e, self.error_cnt_call)
  File "/home/sfr/miniconda3/lib/python3.6/site-packages/beemapi/steemnoderpc.py", line 125, in _check_error_message
    raise exceptions.ApiNotSupported(msg)
beemapi.exceptions.ApiNotSupported: Assert Exception:api_itr != _registered_apis.end(): Could not find API follow_api

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/sfr/miniconda3/lib/python3.6/site-packages/discord/ext/commands/bot.py", line 898, in invoke
    await ctx.command.invoke(ctx)
  File "/home/sfr/miniconda3/lib/python3.6/site-packages/discord/ext/commands/core.py", line 614, in invoke
    await injected(*ctx.args, **ctx.kwargs)
  File "/home/sfr/miniconda3/lib/python3.6/site-packages/discord/ext/commands/core.py", line 70, in wrapped
    raise CommandInvokeError(e) from e
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: ApiNotSupported: Assert Exception:api_itr != _registered_apis.end(): Could not find API follow_api

Our status command is as follows:

@bot.command()
async def status(ctx):
    """Returns the current status of the SFR account."""
    logging.info('Registered status command')
    embed = discord.Embed(title='SFR Status', description='The current status of the SFR bot and account.',
                          color=discord.Color.blue())
    sfr = Account(cfg.SFRACCOUNT, steem_instance=stm)
    embed.add_field(name='Bot', value='Up and running', inline=False)
    flaggers, mentions = cursor.execute(
        "SELECT COUNT(DISTINCT flagger), COUNT(comment) FROM "
        "steemflagrewards WHERE included == 0;").fetchone()
    embed.add_field(name='Flaggers', value='{}/9'.format(flaggers), inline=False)
    embed.add_field(name='Mentions', value=mentions, inline=False)
    payout_removed, total_mentions = cursor.execute(
        "SELECT SUM(payout), COUNT(payout) FROM steemflagrewards WHERE "
        "created > DATETIME(\'now\', \'-7 days\');").fetchone()
    embed.add_field(name='Removed payouts in the last 7 days',
                    value=round(payout_removed or 0, 3), inline=False)
    embed.add_field(name='Total mentions approved in the last 7 days',
                    value=total_mentions)
    embed.add_field(name='Steem Power', value=round(sfr.get_steem_power(), 3), inline=False)
    embed.add_field(name='Voting Mana', value=round(sfr.vp, 2), inline=False)
    embed.add_field(name='VP --> 100%', value=sfr.get_recharge_time_str(100), inline=False)
    embed.add_field(name='Vote Value', value=round(sfr.get_voting_value_SBD(), 3), inline=False)
    embed.add_field(name='Reputation', value=round(sfr.get_reputation(), 3), inline=False)
    embed.add_field(name='Resource Credit %', value=round(sfr.get_rc_manabar()['current_pct'], 1), inline=False)
    post = sfr.get_blog(limit=1)[0]
    embed.add_field(name='Latest Post',
                    value='[{}](https://steemit.com/@{}/{})'.format(post['title'], post['author'], post['permlink']),
                    inline=False)
    embed.add_field(name='Awesomeness', value='Over 9000', inline=False)
    await ctx.send(embed=embed)

Finally going to watch Avengers Endgame.

Spoiler Alert

I will downvote any spoilers in my comments. Just kidding, I won't be checking them because I know how the Internet works. Yeah yeah.

Already heard that Batman dies. Nice try losers! :P

Tbh the memes have been unavoidable so pretty much already know what's up.

Oh, btw you just might want to claim some @steemflagrewards downvotes before I implement the adjustments to limit ROI on those. Call it the Flag Loyalty Special! Shhhhh don't let everybody and their mom know. Thanks!



0
0
0.000
18 comments
avatar

You haven't watched Avengers yet? How were you able to hang on for so long, I had to watch it the moment it came out, the movie is AMAZING!

0
0
0.000
avatar

To listen to the audio version of this article click on the play image.

Brought to you by @tts. If you find it useful please consider upvoting this reply.

0
0
0.000
avatar
(Edited)

Think it is an issue with beem itself needing to update to HF21? Quick temp fix is to just comment out the REP call. Might wanna do that just to check that the rest of it runs right.

Also note the error states:
Could not find API follow_api

pt7c4iwmhs.png

0
0
0.000
avatar

I watched Avengers Endgame 4 times but Tony Stark never survived after the last war😅😜😝

0
0
0.000
avatar

Well it's not an interactive Movie... But I get what you mean.

0
0
0.000
avatar

I know what you are trying to say but also I am not a fan of this movie. I was just invited four times by my college and school friends, relatives to watch the movie because they were paying for bills, popcorn and other items lol. Who won't go to eat haha?

0
0
0.000
avatar

I really like switching "It's fine" dog and the fire. And yeah I agree that reputation bug isn't a big deal.

0
0
0.000
avatar

Hi, @anthonyadavisii!

You just got a 15.84% upvote from SteemPlus!
To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn.
If you're not using SteemPlus yet, please check our last posts in here to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.

0
0
0.000
avatar

Hi @anthonyadavisii!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your UA account score is currently 5.435 which ranks you at #671 across all Steem accounts.
Your rank has not changed in the last three days.

In our last Algorithmic Curation Round, consisting of 118 contributions, your post is ranked at #76.

Evaluation of your UA score:
  • You've built up a nice network.
  • The readers like your work!
  • Try to work on user engagement: the more people that interact with you via the comments, the higher your UA score!

Feel free to join our @steem-ua Discord server

0
0
0.000
avatar

Hmmm maybe I should run a witness... Nah I don't like playing politics.

0
0
0.000