Re: [google-appengine] Re: Over Quota Custom Message

2018-02-08 Thread Attila-Mihaly Balazs
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

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@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/f08950fa-7840-4944-b719-ab360de690e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Over Quota Custom Message

2018-02-05 Thread 'George (Cloud Platform Support)' via 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? 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@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/47743657-51ba-41cc-bdf0-011272ad1e48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Over Quota Custom Message

2018-02-04 Thread Hossein Amerkashi
Hi, Instead of a 503 error code, would like to create a custom, friendlier
messages. Is that possible?

On Sun, Feb 4, 2018 at 3:00 PM, 'George (Cloud Platform Support)' via
Google App Engine  wrote:

> 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.
>
> [1] https://cloud.google.com/appengine/pricing?csw=1#other-resources
> [2] https://firebase.google.com/docs/firestore/usage
>
> --
> 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+unsubscr...@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.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@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/CAE0i7w%3DBvJY4tQCie92L3G8N7qQbNuUYCEJuPUNUAvCvG0Q5OQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Over Quota Custom Message

2018-02-04 Thread 'George (Cloud Platform Support)' via 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. 

[1] https://cloud.google.com/appengine/pricing?csw=1#other-resources
[2] https://firebase.google.com/docs/firestore/usage

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@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.