Over Quota Custom Message

78 views
Skip to first unread message

Hossein Amerkashi

unread,
Feb 4, 2018, 10:09:45 AM2/4/18
to Google App Engine
Hi,

Is there anyway to create a custom message for over-quota?

Thanks
AppyBuilder.com

George (Cloud Platform Support)

unread,
Feb 4, 2018, 3:00:01 PM2/4/18
to Google App Engine
If your app exceeds the free quota for a resource needed to initiate a request, such as the bandwidth quota or instance hours quota, users of the app will get a server error, such as a HTTP 503 error. For all other services, exceeding quota from a free app will generate a quota exception that your app can handle gracefully by showing a message to the users. The "App Engine Pricing" page [1] provides more related information. 

How would you like to configure your custom over-quota message? What information would you like to see in that message, more than what is provided with the 503 error? To whom would you like to see this message sent? 

It may prove worthwhile mentioning that for users of Firebase, there is more help with warnings, when certain percentages of quotas are passed. To track your Cloud Firestore costs, create a monthly budget in the Cloud Platform Console. Budgets won't limit your usage, but you can set alerts to notify you when you're approaching or exceeding your planned costs for the month. You may check the "Monitor Usage and Billing" page [2] for details. 

Hossein Amerkashi

unread,
Feb 4, 2018, 3:11:19 PM2/4/18
to google-a...@googlegroups.com
Hi, Instead of a 503 error code, would like to create a custom, friendlier messages. Is that possible?

--
You received this message because you are subscribed to a topic in the Google Groups "Google App Engine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-appengine/pclwc5kIuzk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-appengine+unsubscribe@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/9f16b629-17e9-4d7c-8e6f-3d884f6fef04%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

George (Cloud Platform Support)

unread,
Feb 5, 2018, 1:25:33 PM2/5/18
to Google App Engine
It is a lot of subjectivity involved here, in declaring a 503 error friendly or not: for the one who finds this information useful, the same string may well seem friendly. How would you formulate the 503 error friendlier? What extra information would you like to see included with this message? What is the use-case that requires extra information and re-formulation of the error message? 

Attila-Mihaly Balazs

unread,
Feb 9, 2018, 1:38:15 AM2/9/18
to Google App Engine
Hossein,

If we're talking about AppEngine standard, you can set the static file which will be served for particular sitations (over quota, timeout, etc): see "error_handlers" here: https://cloud.google.com/appengine/docs/standard/python/config/appref

Cheers,
Attila
Reply all
Reply to author
Forward
0 new messages