Open hifocus opened 2 years ago
Will definitely look into that, The bot retries requests up to 4 times but in your case a 400 bad request is not retried, because it would fail anyway after 4 tries. Either an incorrect DNS entries or wrong header or URL. Checked the URL and header in the error, and they seem fine, so it's probably a problem on your end. Sadly, there could be more to that error, so it is quite hard to identify exactly what's the cause. But I can say with certainty that the request should have worked, it has the right URL and right header.
And about restarting, you should use a process manager for that like pm2.
While leaving the script in a remote machine to run, it returned the below lengthy error message after around 6-7 hours of watching
It said it returned a 400 code (Bad Request)
The remote machine has 500Mbps of bandwidth, not excellent, but due to the nature of ISP/DC network, it's meant to be more reliable than home network. And the ping looked more than fine.
Due to the nature of this error is potentially unknown, is it possible to add two features:
Currently it's impossible to run and forget, as eventually it will run into some issue that needs mannual operations. Thanks.
Below are the error messages: