Search code examples
google-cloud-platformgoogle-app-engine

Google App Engine: DeadlineExceededError: The overall deadline for responding to the HTTP request was exceeded while reading fetching data


I receive this error:

DeadlineExceededError: The overall deadline for responding to the HTTP request was exceeded 

from Google App Engine (GAE) instance type f and runtime python 2

It probably happens because im trying to receive a massive amount of data from a persistence layer and the request times out.

Documentation says: The timeout for other HTTP requests is 1 minute How Instances are Managed

Any possible ways to extend this timeout?


Solution

  • Any possible ways to extend this timeout?

    Not directly. Your possible options are

    1. Stay on Python 2 and switch to tasks which has a 10 minute timeout

    2. Upgrade to Python 3 which also has a 10 minute timeout. This is a better option because you actually have to switch to Python 2 by Jan 30, 2024 (see end of support schedule for Python 2)