I am running a flask app, which makes a streaming request to OpenAI API. It works fine locally. But on render.com after 30 seconds (± a second or so) the python seems to get an error, and my function restarts.
I am using nginx in a container.
I am using gunicorn (and have extended the timeout to 2 mins)
I can’t see any useful logs that point to the error
I can’t narrow down the problem at the moment. Any ideas?
On render , it seems this command wasn’t running, but gunicorn was being started based on the ‘Start Command’ in the ‘Settings’ page. When I updated that to: