
For all the Steemit devs, if your Steem bot recently has started behaving wrong try to change the RPC node first.
Hey devs on Steemit,
I have been using @buildteam's RPC node(https://rpc.buildteam.io), thanks to the team, for my
@krguidedog project. It's been great until yesterday, but KR Guidedog bot just got stuck due to a very weird problem.
I spent huge amount of time to figure out the main cause, and it turned out the post body and json_metadata are completely empty when I get a post by any "user/permlink" combinations. Tried lots of edge cases and all failed. As @krguidedog needs to check the tag in json_metadata of the post, it was just unable to work without the data.
I am using steem-python's Post module but basically it is using the light RPC internally so after digging into the problem I concluded that it was a problem of the RPC node.
I simply changed my RPC node to the other node (@gtg's one), and everything has come back to normal.
@buildteam, could you please check why there are such discrepancies in the response from your RPC?
Hope this helped you.
Expected behavior
steemd RPC must return the body and json_metadata of a post
Actual behavior
body and json_metadata are empty
How to reproduce
Using steem-python, set RPC node to:
steempy set nodes https://rpc.buildteam.io/
And run this code.
from steem.post import Post
a = Post("@nowmacha/2gm8vp-and")
print(a.export());
And run the code after changing your RPC node to another one:
steempy set nodes https://gtg.steem.house:8090
Repository
I put steemd's repository as I barely think @buildteam has forked steemd for their RPC node.
Posted on Utopian.io - Rewarding Open Source Contributors
Leave For all the Steemit devs, if your Steem bot recently has started behaving wrong try to change the RPC node first. to:
Read more #utopian-io posts
Best Posts From asbear
We have not curated any of asbear's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From asbear
- 증인노드 아직 복구중입니다. Witness node replay failed, moved on to 0.20.1
- 증인 업데이트 및 소식
- Witness Update - @asbear
- Witness Update @asbear
- [스팀페이코] 이제 스팀달러도 지원합니다! (STEEMPAYCO now supports SBD for invoicing)
- How can we deal with the new abusive upvoting behaviours?
- 서울페이 프로젝트를 응원합니다!
- 스팀페이코 프로젝트 소식입니다 ^^
- [개발] 개발자는 "새로운것을 받아들이고 익히는" 직업
- @asbear - Witness Update