Note to steem-python users, your application may be broken at the moment

Words
142
Reading
1 min
Listen
Play
9y

A couple of months ago -with the jussi onboarding- steemit devs announced that steemd.steemit.com will be deprecated at some point in favor of jussi (api.steemit.com)

image

(Default node selection on steem-python)


Well, I have missed this notice and starting having timeouts everywhere, yesterday.

I have also seen some of the bots are down at the same time including utopian-io@utopian-io voting bot, minnowsupport@minnowsupport bot, qustodian@qustodian. Suspecting they're having the same problem. :)

Solution


  • Pass custom nodes into Steem initialization
s = Steem(nodes=["https://api.steemit.com", "https://rpc.buildteam.io"]

This will use Jussi for the primary node connection. If Jussi goes down, fallbacks to buildteam@buildteam RPC node.

But this may not be enough, depending on how you use steem-python classes. You should explicitly pass steemd_instance to your objects like this.

Example with Account class

from steem.account import Account
acc = Account(
    "emrebeyler", 
    steemd_instance=Steem(
        nodes=["https://api.steemit.com"])
    )
print(acc)

I have already opened a pull request to update this. I doubt it will be reviewed and shipped soon, though.

Note to steem-python users, your application may be broken at the m... | Ecency