Requests to execute python scripts on VPS using Flask
Budget: $10 – $30 USD
Hello
I have 2 scripts on my VPS (.py scripts)
To execute them, I have flask on,
so in order to execute gn512512.py (on /home/wechat path)
I run this request :
import requests
import re
url='http://45.144.176.219/run_cmd'
data={'command':"gn512512"}
r=requests.post(url=url,json=data)
print(r.text)
it runs without issues
for my second script, it runs like that
python3 gs512512.py 12586152 (12586152 is a parameter)
when i run it i keep getting this error message :
<!doctype html>
<html lang=en>
<title>500 Internal Server Error</title>
<h1>Internal Server Error</h1>
<p>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.</p>
if anyone can solve this issue
I have 2 scripts on my VPS (.py scripts)
To execute them, I have flask on,
so in order to execute gn512512.py (on /home/wechat path)
I run this request :
import requests
import re
url='http://45.144.176.219/run_cmd'
data={'command':"gn512512"}
r=requests.post(url=url,json=data)
print(r.text)
it runs without issues
for my second script, it runs like that
python3 gs512512.py 12586152 (12586152 is a parameter)
when i run it i keep getting this error message :
<!doctype html>
<html lang=en>
<title>500 Internal Server Error</title>
<h1>Internal Server Error</h1>
<p>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.</p>
if anyone can solve this issue