https://aiwrapapi.onrender.com
Hello! I’m experiencing the 502 Bad gateway error with a uWSGI Flask app. I’ve tried all of the suggestions but I’m still getting a 502:
Set PORT env var 5070
Confirmed service build succeeded
Confirmed server is running
Are there any other reasons 502s would be returned?
I don’t use any reverse proxies
This is app.ini
[uwsgi]
module = wsgi:app
http-socket = 0.0.0.0:5070
master = true
processes = 1
threads = 2
listen = 2048
buffer-size = 32768
die-on-term = true
This is wsgi.py:
from app import app
if name == “main”:
app.run(host=“0.0.0.0”,port=5070)
This is main func in app.py
if name == ‘main’:
app.run(host=“0.0.0.0”,port=5070)