Noticed the following error trying to restart our upvote bot:
[email protected]:~/steemflagrewards/sfrvotingbot_update$ node sfrvotingbot_consolidated.js (node:13595) UnhandledPromiseRejectionWarning: Error [TOKEN_INVALID]: An invalid token was provided. at WebSocketManager.connect (/home/sfr/steemflagrewards/sfrvotingbot_update/node_modules/discord.js/src/client/websocket/WebSocketManager.js:132:26) at Client.login (/home/sfr/steemflagrewards/sfrvotingbot_update/node_modules/discord.js/src/client/Client.js:210:21) at processTicksAndRejections (internal/process/task_queues.js:82:5) (node:13595) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:13595) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
This was resolved by following actions provided in this article
[email protected]:~/steemflagrewards/sfrvotingbot_update$ npm outdated Package Current Wanted Latest Location discord.js 12.0.0-dev git git sfrvotingbot [email protected]:~/steemflagrewards/sfrvotingbot_update$ npm update discord.js
Specifically, I executed the 'npm outdated' and 'npm update discord.js' in the bot folder. As soon as the update was complete, was able to run the bot again no problem.
My next task will be testing looking into a mechanism for the bot to ascertain free downvotes against a HF21 RPC node. My assumption is that such a node with plugins is available by now rather than just a condenser. I was able to obtain the HF21 node that Keychain uses previously but, unfortunately, the needed plugin was not available.
If I'm not mistaken, it is the reward API. I could spin up a testnet RPC node but I am still working on correcting an issue with my new server. Specifically, I am trying to pull the image off a degraded RAID 1 array but am having a hard time. The software I am using seems intent on pulling a sector-by-sector from a 931 GB disk but, in actuality, less than 50 GB or so is currently being utilized on the disk.
I ordered a couple spare drives in case my issue is related to a hardware failure on one. Hope that does it but still need to figure out a solution in the interrim. I may just use my gaming server which isn't as nice but should probably be able to get the job done for testing.
The problem is my SSD is somewhere around 235 ish GB and my plan is to reimage onto that drive for performance reasons. Will keep tinkering to see if I can find a solution. I would prefer not building anything on this server until I do as there is a potential for data loss until I am able to back it up. Anyways, that's a little bit about what's going on. Also, will need to update our repository at some point. Working from this branch currently for the token distribution which is slightly out of date.
Need to get with @reazuliqbal on the upvote bot code being put on a repository that way I can put in a PR with the changes made. That way we are working from the same sheet of music.