Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Hi, i have the following issue in a flask+gunicorn api deployed in the DigitalOcean App Platform.
The app itself works fine overall but i just added an endpoint that gets me data between two dates. The endpoint returns the data without any issues (if the date difference is small) but this is the problem:
If the time difference starts getting bigger and so the time it takes to get the response, at 60 seconds started the request (exactly) i get the following error message back in response:
"We encountered an error when trying to load your application and your page could not be served. Check the logs for your application in the App Platform dashboard.
upstream_reset_before_response_started{connection_termination} (503 UC)
App Platform failed to forward this request to the application"
I build my application with a Dockerfile and i’ve already added a bigger timout so gunicorn doesn’t fail:
CMD [“gunicorn”, “–bind”, “0.0.0.0:8080”, “-w”, “5”, “–timeout”, “100”, “–graceful-timeout”, “100”, “–chdir”, “app”, “app:server”, “–log-level”, “debug”, “–access-logfile”, “-”, “–error-logfile”, “-”]
FYI: In a local environment the request comes back just fine, it just takes over a little over 60 seconds.
I searched and it says the limit is 100 seconds for the app platform but i don’t know if i failed to configure something or if should take anything else into account. Thanks in advance!
santoshpatil
KFSys
Andrew J Montanus
nashurgessa
blueviolet
Ibrahim Mudassar
288dccdbfd934607b6f223b33b9d92
TinyLightSeaGreenShrimp
AdorableCeruleanEel
Bobby
fa452710b73e4632997145b18bc820