For all the Steemit devs, if your Steem bot recently has started behaving wrong try to change the RPC node first.

in #utopian-io7 years ago (edited)

Hey devs on Steemit,

<p dir="auto"><span>I have been using <a href="/@buildteam">@buildteam's RPC node(<a href="https://rpc.buildteam.io" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://rpc.buildteam.io), thanks to the team, for my <a href="/@krguidedog">@krguidedog project. It's been great until yesterday, but KR Guidedog bot just got stuck due to a very weird problem. <p dir="auto"><span>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 <a href="/@krguidedog">@krguidedog needs to check the tag in json_metadata of the post, it was just unable to work without the data. <p dir="auto">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. <p dir="auto"><span>I simply changed my RPC node to the other node (<a href="/@gtg">@gtg's one), and everything has come back to normal. <p dir="auto"><span><a href="/@buildteam">@buildteam, could you please check why there are such discrepancies in the response from your RPC? <p dir="auto">Hope this helped you. <h4>Expected behavior <p dir="auto">steemd RPC must return the body and json_metadata of a post <h4>Actual behavior <p dir="auto">body and json_metadata are empty <h4>How to reproduce <p dir="auto">Using steem-python, set RPC node to: <pre><code>steempy set nodes https://rpc.buildteam.io/ <p dir="auto">And run this code. <pre><code>from steem.post import Post a = Post("@nowmacha/2gm8vp-and") print(a.export()); <p dir="auto">And run the code after changing your RPC node to another one: <pre><code>steempy set nodes https://gtg.steem.house:8090 <h4>Repository <p dir="auto"><span>I put steemd's repository as I barely think <a href="/@buildteam">@buildteam has forked steemd for their RPC node. <p dir="auto"><br /><hr /><em>Posted on <a href="https://utopian.io/utopian-io/@asbear/for-all-the-steemit-devs-if-your-steem-bot-recently-has-started-behaving-wrong-try-to-change-the-rpc-node-first" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Utopian.io - Rewarding Open Source Contributors<hr /><p>
Sort:  

.

hi @asbear , thanks for the contribution , i think the developers have noticed this issue already



Chat with us on Discord.Need help? Write a ticket on https://support.utopian.io.

[utopian-moderator]

Yes but my bug report was 2 days earlier than that. This report definitely deserves utopian's vote. Let me know if you think different.