Forums

500 Internal Server Error

I tried to run another python script inside my Flask server. And when I call that corresponding URL I get the following Error

Internal Server Error

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

Did you check your error logs for any details?

How are you running that python script inside of your flask server? eg: is it being run as a thread? as a subprocess? Threads are disabled for webapps.

im calling it using os.popen('python3 filename.py").read()

Does that particular subprocess take a long time to run? then you will probably get a 500 since it blocks