You are viewing a single comment's thread from:

RE: Quick update on Finallycomments - v0.7.1

Hey I know it's not the right post to comment but I did not find your Discord id. I have a small issue with your statistics responder bot, sometimes the steemit api gives a 504 error and the bot crashes and it needs to be restarted to work again. Is there a way to make the bot restart automatically each time an error appears or if the did not find a new post in the last 10 seconds, restart? Thanks in advance.

I will try to add a picture here with the error once it happens again, but it's 504 related.

Sort:  

To be honest I'm still not sure 100% on the best approach here. The stats bot was just an example for the tutorial and by no way intended to be a bulletproof approach.

The best I've come up with so far is to check if there is an error inside the of the stream callback, if so exit the process and have forever restart the node process. I'm certian there is a better way though

Any chance you can help me on that part? Maybe you can make it as an update for that and post via utopian?
Here's a pic of the error

pic.PNG

Sorry I had forgotten this tutorial was based on the browser. Working in the browser is primarily for learning, this really needs to run as a server-side process. I'm not sure it's viable to have it restart effectively in the browser.

I can add a step-by-step 'always on' tutorial to the list but I have a very long list. I have many projects to work on so I won't be able to work on this for you in any short amount of time, sorry.

No problem, thank you for your time, I found a small solution for now, refresh the page when the script gets an error, I'll start learning javascript, it should not be that hard since I've worked a little with C#, C, C++. Thank you for your tutorials I'll stat from there.

Coin Marketplace

STEEM 0.20
TRX 0.25
JST 0.039
BTC 97542.75
ETH 3458.83
USDT 1.00
SBD 3.15