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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

I’ve recently answered a similar question here:

https://www.digitalocean.com/community/questions/gunicorn-increase-timeout-doesnt-takes-effect

Basically, setting the timeouts in the run command in the Procfile file should work:

web: gunicorn app:app --timeout 100

But note that there is a hard set 100s timeout in the App platform for requests that unfortunately can’t be changed.

However, if the request is timing out in 30 seconds that maybe could be due to resource exhaustion.

You can also reach out to the DigitalOcean support team to see if they could help out with this further:

https://www.digitalocean.com/support/

Hope that helps!

- Bobby.

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.