The Voting Service Partially Fixed and Refactored

in steem •  8 days ago 

In the last 3 days - the voting service was not working properly - mainly because the Jussi Error from the steem.api.getDiscussionsByAuthorBeforeDate:

See this post

Jan 9 14:20:02 ip-172-31-16-189 beta-jussi[3406]: {"exception":"TypeError(\"'<=' not supported between instances of 'str' and 'int'\",)","message":"Internal Error","error_id":"5376fdde-cee2-47af-b41b-848aa663f7a5","jrpc_request_id":0,"jussi_request_id":"000012022854007820","event":"Internal Error","logger":"jussi.errors","level":"error"}

And

{"name":"RPCError","code":-32603,"data":{"error_id":"84a265d7-deeb-4e67-9b5e-ef563d01c609","jussi_request_id":"000041156441395752"}}

Now, I've taken the chance to refactor the code, and restraint the node selections to 3 nodes which don't seem having the problem:

https://api.moecki.online
https://api.steem.fans
https://steemapi.boylikegirl.club

image.png
20feca69bf8ed120386a2ab4d277598.png

So, as usual - comment if your post misses a vote.

Steem to the Moon🚀!

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 BLURT!