Search code examples
google-app-enginegoogle-cloud-datastoregae-quotas

GAE: RunQuery required more quota than is available despite having plenty of quota remaining


I'm getting the following exception from a query that was working just fine up until a few moments ago:

OverQuotaError: The API call datastore_v3.RunQuery() required more quota than is available.

However, in the quota details it's not showing us as being over any quotas related to the datastore:

screenshot of storage quota detail

Any idea what might be causing this OverQuotaError?


Solution

  • When using Datastore, you should make sure that your App Engine budget is also able to handle any Datastore usage above the Free Quota.

    In particular, it looks like you are at 50K Datastore Read operations for the day. This is the maximum amount of daily free quota you receive for read operations. At this point any billable operations must be within your App Engine Budget. You can follow the instructions on the quotas page for increasing your daily budget, which will allow you to exceed the Datastore free quota.