You are viewing a single comment's thread from:

RE: TypeError on getblog via Beem - Multiple Nodes Tested

in #utopian-io5 years ago (edited)

Hey @anthonyadavisii, this is a node issue. The Steemit node has disabled the get_blog call (among others) with the switch to hivemind: https://steemit.com/steemit/@steemitdev/upcoming-changes-to-api-steemit-com

Your code has a little typo, so you didn't actually test with other nodes: The Steem() constructor takes a node= parameter, not nodes=. Here's the working version:

from beem import Steem
from beem.account import Account
from beem.comment import Comment
stm = Steem(node='https://anyx.io')
sfr = Account('steemflagrewards', steem_instance=stm)
post = sfr.get_blog(limit=1)[0]

This fails with the steemit node as expected, but works with other nodes.

Sort:  

So, it was still probably hitting the Steemit node the whole time with the previously issued set_shared_steem_instance? (which I did not mention was used in my session)

I would have expected a different error so maybe it fails over to the default node transparent to the user which threw me off.

Anyways thanks for catching that. Bot is now fully operational thanks to you, @crokkon!

Thank you for your review, @crokkon! Keep up the good work!

Coin Marketplace

STEEM 0.30
TRX 0.12
JST 0.032
BTC 63857.77
ETH 3117.63
USDT 1.00
SBD 3.87