HTTP Error 502: Bad Gateway suddenly interrupt my pythin script

image

As you can see, I have my terminal open that is running a python script. This script log data from a sensor to myphpadmin database. This script should be running continuously however the error 502 always interrupt the script at sometime for me to monitor the script and rerun the script when it stop.

Please help me to fix the sudden 502 error I got from running the python script. I wish to run that python script for 72hours max. TIA

Free hosting - bugs can occur :wink:

Could it be rate limiting? Search the forum for the helpful info provided by @sulliops