Hello, I have been trying to deploy a FastAPI app to Render using uvicorn but I’m constantly running into errors.
When I first built my app using
pip install -r requirements.txt and started it using Gunicorn:
cd app && gunicorn -w 4 -k uvicorn.workers.UvicornWorker main:app,
the app never showed any errors but did not load after going to the site.
I then came across the thread about deploying with uvicorn and realising it was not on the same port, I used the same command but to no avail. It shows me these errors in the logs now:
Nov 23 12:11:39 PM ==> Starting service with 'cd app && uvicorn main:app --host 0.0.0.0 --port 80' Nov 23 12:11:42 PM INFO: Started server process  Nov 23 12:11:42 PM INFO: Waiting for application startup. Nov 23 12:11:42 PM INFO: Application startup complete. Nov 23 12:11:42 PM ERROR: [Errno 13] error while attempting to bind on address ('0.0.0.0', 80): permission denied Nov 23 12:11:42 PM INFO: Waiting for application shutdown. Nov 23 12:11:42 PM INFO: Application shutdown complete.
Can someone please help me out?
Thanks in advance!