Closed zero0nee closed 5 years ago
[...] FastAPI is my absolute favourite project on all of GitHub.
😁🤘🚀🎉
You can add a custom Gunicorn file with a larger timeout: https://github.com/tiangolo/uvicorn-gunicorn-fastapi-docker/blob/master/README.md#custom-gunicorn-configuration-file
You just create a variable timeout
with how many seconds it should give (e.g., 300 for 5 minutes).
Make sure you copy the rest of the original Gunicorn file too: https://github.com/tiangolo/uvicorn-gunicorn-docker/blob/master/python3.6/gunicorn_conf.py
Thanks for reporting back and closing the issue! :rocket:
Hi @tiangolo !
As always I'm impressed by your work. As I've said many times before, FastAPI is my absolute favourite project on all of GitHub.
I've set up an API that seems to work fine. However, when I post a large request I get
502 Bad Gateway
as a response. When I check the docker log inbackend_1
I get the following error message.Why is the worker timing out? Also when I time how long it takes for the timeout it always varies. Sometimes its after 20 seconds, sometimes 4 seconds, sometimes 15 seconds etc.