xeroc / piston-cli

Command line tool to interact with the STEEM network
MIT License
74 stars 33 forks source link

get_blog() no longer works #74

Closed Netherdrake closed 8 years ago

Netherdrake commented 8 years ago

I have been running into this error lately, and its very prevalent, yet intermittent in nature.

Steps to recreate:

piston.steem.Steem().get_blog("username")

Error:

  File "/home/x/anaconda3/lib/python3.5/site-packages/piston/steem.py", line 1019, in get_blog
    user, p   # FIXME, this is a inconsistency in steem backend
KeyError: 'steemsports/steemsports/steemsports-edmonton-oilers-vs-new-york-islanders-mass-sp-distribution-game'

I am on latest master of piston stack, and using this.piston.rocks and node.steem.ws.

Netherdrake commented 8 years ago

I have created a temporary workaround for steemtools: https://github.com/Netherdrake/steemtools/commit/d3febff21ff7862aa9c72b2efac49703e6ee8ac2

xeroc commented 8 years ago

So it seems they fixed the inconsistency mentioned in the original sources :D

Netherdrake commented 8 years ago

Yes, it was very confusing for a while, since it was intermittent. I suppose that was due to some nodes being 14.2 and some 15.