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

in steempython •  7 years ago  (edited)

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 voting bot, @minnowsupport bot, @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 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.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  
  ·  7 years ago (edited)

I did the same a couple of hours ago: https://github.com/steemit/steem-python/pull/115
but given the list of PRs not merged since end of October, I don't expect big changes to the upstream repo... :/

ahh, didn't see that. closed mine. :)

They have some activity from time to time, but they're not reviewing pull requests actively. This is an official repository and it should be updated before old api endpoint goes dark.

np :)
the situation is indeed not so nice. furion (netherdrake on GH) also seems to run its own fork with fixes that haven't made it upstream...
Seems like a lot of people had some busy hours today getting things back up, let's hope the best for the future!

Can confirm, my apps are down too.

I had similar problem with steem-js too

EDIT - apologies after seeing the comment below I realised this comment was not very helpful. Yes I had the same problem but fixed it easily by looking up the other avaible servers and connecting to one of those instead. In the steem.js library that call is steem.api.setOptions({ url: 'wss://differenturl.org' });

I found this link that lists other available servers

Exactly. Steem-js are not working.

You can specify a different server to connect to. here is a link to other servers running - api servers

For example you can run this code before your steem api calls
steem.api.setOptions({ url: 'wss://rpc.buildteam.io' });

Thamk you for your update.
I was using the cdn :

and this is by default forwarding to wss ://steemd.steemit.com
How do we solve this problem ?

Thank you for your help.

FD.

yes looks like the latest version has not been pushed to the cdn yet. it was updated in github last week best option is to use the line of code above and specify a new server directly until the cdn version is updated.

Thanks friend...I managed to change it. steembotcompare is alive again :)

I think its worth noting that based on this article, web socket connections to api.steemit.com won't work:
https://steemit.com/steemitdev/@steemitdev/update-your-steem-apps-big-changes-coming-for-3rd-party-developers

If you're using a library to relies on wss protocol, you might have some trouble connecting to api.steemit.com

2 years old !BEER