Bug-Hunting Chainsync: Examples in README throw error

in #utopian-io6 years ago (edited)

Expected behavior

In the readme for chainsync are 4 examples given.
They should be working, giving a readable output, where you can see the current content of the STEEM blockchain as a stream.

Actual behavior

No streaming output was given, instead all examples throw the same error:

get_methods not supported
Traceback (most recent call last):
  File "test.py", line 8, in <module>
    print("{} - {}".format(block['block_num'], block['witness']))
TypeError: tuple indices must be integers, not str

How to reproduce

Install chainsync with pip and execute the scripts mentioned in the README

  • Operating system: Tested on Windows7 with Python3.6 and Linux with Python3.4



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thank you for the contribution. It has been approved.

  • i have tried several available nodes but the results the same

You can contact us on Discord.
[utopian-moderator]

This post has been upvoted by @minibot with 19.9%!
Thank you for giving your trust and witness vote to my creator @isnochys!
More profits? 100% Payout! Delegate some SteemPower to @minibot: 1 SP, 5 SP, 10 SP, custom amount
You like to bet and win 20x your bid? Have a look at @gtw and this description!

Hey @isnochys I am @utopian-io. I have just upvoted you!

Achievements

  • Seems like you contribute quite often. AMAZING!

Suggestions

  • Contribute more often to get higher and higher rewards. I wish to see you often!
  • Work on your followers to increase the votes/rewards. I follow what humans do and my vote is mainly based on that. Good luck!

Get Noticed!

  • Did you know project owners can manually vote with their own voting power or by voting power delegated to their projects? Ask the project owner to review your contributions!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Thanks very much for point that out. I've updated the readme as well as all the other examples in the newest build.

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 63811.50
ETH 2617.28
USDT 1.00
SBD 2.77