Ask coding questions

← Back to all posts
Why does my Python program randomly stop?
h
josima

Hello, I'm trying to make a Python program that runs 24/7. I use https://uptimerobot.com/ to keep it up. The program can run for hours at a time before it randomly stops. Sometimes it takes longer than others. The uptime robot still says that it's online. But I don't get any output to the console anymore. After it stops I just get this message from the console: "172.18.0.1 - - [14/Oct/2021 11:18:43] "HEAD / HTTP/1.1" 200 -". Any help is appreciated!

Answered by RileyMears [earned 5 cycles]
View Answer
Voters
josima
Comments
hotnewtop
RileyMears

when you click the project name inside the code editor, there should be a button near the bottom of the pop-up saying "always on". make sure thats checked on

josima

@RileyMears Thank you! I'll have to purchase the Hacker subscription but that's all right!

JonDoeBeep

@josima yup, worth it if you code a lot and don't have a pretty good pc.