Open hamzaaitbrik opened 1 year ago
Hey did you find a solution? Having same error :/
Same here
Hey did you find a solution? Having same error :/
Indeed I have developed a solution to run the script while I'm away. But, it's just a "fix" that reruns the script whenever it stops.
Hey did you find a solution? Having same error :/
Indeed I have developed a solution to run the script while I'm away. But, it's just a "fix" that reruns the script whenever it stops.
Can you share? Usually using forever
for node, what are you using in this case?
Hey did you find a solution? Having same error :/
Indeed I have developed a solution to run the script while I'm away. But, it's just a "fix" that reruns the script whenever it stops.
Mine crashes frequently and I cannot restart every 5 minutes, would you mind sharing the script that reruns whenever it crashes? Would be muchly appreciated!
Sorry for the late reply. Here's the code I used to run the script infinitely:
import os
while(os.system('sh run_linux.sh') == 0):
os.system('sh run_linux.sh')
That's it. Note that you're gonna need super user priveleges in order to run run_linux.sh
each time, I counter this by running the python script I attached in a Terminal window that has sudo su
command already executed.
@VespidEmperor @0x17d9ef78
I do not run on Linux. I am a Windows normie sorry. Is there a way to turn into a python script or a bat file that can just run on my PC then close when done?
@VespidEmperor I think the script I provided will work for Windows as it does for Linux, simply because Python works on Windows too. What might cause you some trouble is super user privileges, but I really doubt you'll find any trouble since it's Windows... Just replace the sh run_linux.sh
with the command you use for Windows. Make sure you open PowerShell/CMD as administrator.
My bandaid solution was to just replace the post_actions.py segment where requests is being used and then add https:// at the start before the variable for the rest of the URL.
@De-y that's an interesting fix. Mine is what a bandaid looks like; it just reruns the script whenever it fails...endlessly. Thanks for your contribution.
this error occurs when the bot is searching for a post to re-post. any solutions to this? I should also add up that I'm running the bot on Linux shell.