Report this

What is the reason for this report?

App platform request timeout

Posted on September 2, 2025

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!



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

The developer cloud

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

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.