SFR Bot Troubleshooting Session #2 Node Issues - Beem NodeList Validation Results

5개월 전

flag rewards dev post 1.png

I have created a script block to perform a simple configuration pull from all nodes listed in the Beem nodelist class.

Beem NodeList on Github

The following code was leveraged:

from beem import Steem
from beem.account import Account
from beem.comment import Comment
from beem.nodelist import NodeList

status = []

for n in nodes:
    Connectivity = {}
    Configuration = {}
    Account_Class = {}
    Comment_Class = {}
    try:
        stm = Steem(node=n,num_retries=1,num_retries_call=1)
        Connectivity = {'Connectivity': True, 'Error': 'n/a'}
    except Exception as e:
        Connectivity = {'Connectivity': False, 'Error': e}
        status.append({'Node':n,'Connectivity': 'No','Configuration':'n/a','Account':'n/a','Comment':'n/a'})
        continue
    try:
        stm.get_config()
        print("Obtained config from node "+n)
        Configuration = {'Get_Config':'Success', 'Error': 'n/a'}
    except Exception as e:
        Configuration = {'Get_Config':'Failure', 'Error': e}
        Configuration = False
    try:
        a = Account('anthonyadavisii',steem_instance=stm)
        print("Obtained account information")
        Account_Class = {'Account_Class':'Success', 'Error': 'n/a'}
    except Exception as e:
        print("Failed to obtain account information")
        Account_Class = {'Account_Class':'Success', 'Error': e}
    try:
        c = Comment('@anthonyadavisii/sfr-bot-troubleshooting-session-1-node-issues-beem-python',steem_instance=stm)
        print("Obtained comment information for "+c.author+"'s post")
        Comment_Class = {'Comment_Class':'Success', 'Error': 'n/a'}
    except Exception as e:
        print("Failed to obtain comment and/or metadata")
        Comment_Class = {'Comment_Class':'Failure', 'Error': e}
    status.append({'Node':n,'Connectivity': Connectivity,'Configuration':Configuration,'Account':Account_Class,'Comment':Comment_Class})

My findings are as follows:

NodeConnectivityConfigurationAccountComment
https://steemd.minnowsupportproject.orgTRUETRUETRUETRUE
https://rpc.usesteem.comFALSEFALSEFALSEFALSE
https://anyx.ioTRUETRUETRUETRUE
https://api.steemit.comTRUETRUETRUETRUE
https://steemd.privex.ioTRUETRUETRUETRUE
http://anyx.ioTRUETRUETRUETRUE
https://appbasetest.timcliff.comFALSEFALSEFALSEFALSE
https://api.steem.houseTRUETRUETRUETRUE

Recieved a Bad Gateway error attempting to connect to @timcliff's node and the following was observed on @themarkymark's node. Not sure what to make of the latter case but the former is likely just offline.

Error: HTTPSConnectionPool(host='rpc.usesteem.com', port=443): Max retries exceeded with url: / (Caused by SSLError(CertificateError("hostname 'rpc.usesteem.com' doesn't match either of 'steemit.com', '*.steemit.com'",),))
Lost connection or internal error on node: https://rpc.usesteem.com (1/1)

Just for shits and gigs, I've attempted a non-secure socket connection and it works without issue. Due to the possibility of a man-in-the-middle attack, I would advise to use caution. Although, the cryptography should stay client side. Other information may be visible. I think the prospect of a hacker viewing said communication is low but that's just my opinion so take it with a grain.

I'm going to give it some time (couple days or so), check again for consistency and then submit a PR if appropriate. I'm sure Marky is already aware of this issue but hopefully this helps in terms of situational awareness for others. Thanks!


Watch our SFR video commercial below.


Will you show support to our mission by delegating to @steemflagrewards.

     Your support goes to reward mod approved downvotes against content that meets our criteria for abuse.

     The latest definitions may be found on our #defitions-of-abuse channel on Discord. Make sure the content you flag is within our criteria!

SteemConnectDelegationLinks
50100250
50010002500

Other ways to help


Support us easily using SteemAuto!

FlaggersModerator ApprovalsDevelopment
SFR fanbase linkSFR-Mod-Fund fanbase linkMy fanbase link

Rewards on this post will help compensate time and labor. We appreciate all support that helps us to continue operations to help keep Steem clean!

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
STEEMKR.COM IS SPONSORED BY
ADVERTISEMENT
Sort Order:  trending

Hi, @anthonyadavisii!

You just got a 14.35% upvote from SteemPlus!
To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn.
If you're not using SteemPlus yet, please check our last posts in here to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.

Hi @anthonyadavisii!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your UA account score is currently 5.411 which ranks you at #676 across all Steem accounts.
Your rank has not changed in the last three days.

In our last Algorithmic Curation Round, consisting of 85 contributions, your post is ranked at #13.

Evaluation of your UA score:
  • You've built up a nice network.
  • The readers like your work!
  • Try to work on user engagement: the more people that interact with you via the comments, the higher your UA score!

Feel free to join our @steem-ua Discord server