Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/google-app-engine/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google app engine OverQuotaException用于启用计费的Google应用程序引擎应用程序_Google App Engine - Fatal编程技术网

Google app engine OverQuotaException用于启用计费的Google应用程序引擎应用程序

Google app engine OverQuotaException用于启用计费的Google应用程序引擎应用程序,google-app-engine,Google App Engine,今天早些时候,我的Google App Engine应用程序中的一个服务调用停止工作,返回以下错误: 500服务器错误 错误:服务器错误 服务器遇到错误,无法完成您的请求。如果问题仍然存在,请说明您的问题,并说明此错误消息和导致此问题的查询。 HTML代码: <html><head> <meta http-equiv="content-type" content="text/html;charset=utf-8"> <title>500 Se

今天早些时候,我的Google App Engine应用程序中的一个服务调用停止工作,返回以下错误:

500服务器错误

错误:服务器错误 服务器遇到错误,无法完成您的请求。如果问题仍然存在,请说明您的问题,并说明此错误消息和导致此问题的查询。

HTML代码:

<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>500 Server Error</title>
</head>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: Server Error</h1>
<h2>The server encountered an error and could not complete your request.<p>If the problem persists, please <A HREF="http://code.google.com/appengine/community.html">report</A> your problem and mention this error message and the query that caused it.</h2>
<h2></h2>
</body></html>
<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>503 Over Quota</title>
<style><!--
body {font-family: arial,sans-serif}
div.nav {margin-top: 1ex}
div.nav A {font-size: 10pt; font-family: arial,sans-serif}
span.nav {font-size: 10pt; font-family: arial,sans-serif; font-weight: bold}
div.nav A,span.big {font-size: 12pt; color: #0000cc}
div.nav A {font-size: 10pt; color: black}
A.l:link {color: #6f6f6f}
A.u:link {color: green}
//--></style>

</head>
<body text=#000000 bgcolor=#ffffff>
<table border=0 cellpadding=2 cellspacing=0 width=100%>
<tr><td bgcolor=#3366cc><font face=arial,sans-serif color=#ffffff><b>Error</b></td></tr>
<tr><td>&nbsp;</td></tr></table>
<blockquote>
<H1>Over Quota</H1>
This application is temporarily over its serving quota.  Please try again later.

<p>
</blockquote>
<table width=100% cellpadding=0 cellspacing=0><tr><td bgcolor=#3366cc><img alt="" width=1 height=4></td></tr></table>
</body></html>
在GAE仪表板的“配额详细信息”下,所有资源都在配额下,在“费率”列中显示“确定”。我已经在应用程序上启用了计费,即使它超过了配额,我也不应该收到这个错误。这里有什么问题?在这个服务调用中,我甚至没有调用
Put()
方法。我只是在查询数据

更新:由于我的下一次配额重置即将结束,剩下0小时(可能是太平洋时间20分钟后的午夜),仍然没有实际超过任何配额,我确实收到了以下新错误:

503超额

错误 超额 此应用程序暂时超出其服务配额。请稍后再试。

HTML代码:

<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>500 Server Error</title>
</head>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: Server Error</h1>
<h2>The server encountered an error and could not complete your request.<p>If the problem persists, please <A HREF="http://code.google.com/appengine/community.html">report</A> your problem and mention this error message and the query that caused it.</h2>
<h2></h2>
</body></html>
<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>503 Over Quota</title>
<style><!--
body {font-family: arial,sans-serif}
div.nav {margin-top: 1ex}
div.nav A {font-size: 10pt; font-family: arial,sans-serif}
span.nav {font-size: 10pt; font-family: arial,sans-serif; font-weight: bold}
div.nav A,span.big {font-size: 12pt; color: #0000cc}
div.nav A {font-size: 10pt; color: black}
A.l:link {color: #6f6f6f}
A.u:link {color: green}
//--></style>

</head>
<body text=#000000 bgcolor=#ffffff>
<table border=0 cellpadding=2 cellspacing=0 width=100%>
<tr><td bgcolor=#3366cc><font face=arial,sans-serif color=#ffffff><b>Error</b></td></tr>
<tr><td>&nbsp;</td></tr></table>
<blockquote>
<H1>Over Quota</H1>
This application is temporarily over its serving quota.  Please try again later.

<p>
</blockquote>
<table width=100% cellpadding=0 cellspacing=0><tr><td bgcolor=#3366cc><img alt="" width=1 height=4></td></tr></table>
</body></html>

503超额
错误
超额
此应用程序暂时超出其服务配额。请稍后再试。

现在,当我在应用程序中执行任何操作时,都会出现此错误,HTML代码会在对话框中弹出


更新2:我的配额刚刚重置,我的应用程序再次正常运行。但这并不能回答我的问题,为什么会发生这种情况。幸运的是,我仍在开发该应用程序,而我是唯一一个因服务器故障而感到不便的人。在这种情况下,我该怎么做才能让我的服务器恢复在线?这是常有的事吗?如果服务器抛出错误而我的应用程序无法运行,是否有办法接收电子邮件通知?显然,等待24小时服务器重置不是一个有效的解决方案。

我想您的应用程序可能是这样设计的:如果初始memcache查询失败,那么它会一次又一次地命中数据存储。或者在memcache中设置一个值失败后,它将不再尝试,假设它在那里。为什么我不知道日志中没有显示(您查看的是扩展的配额日志,不是摘要,对吗?)

他们建议您在故障点进行设计,因此,例如,如果数据存储不可用,您的应用程序不会崩溃,而是会向用户返回一条合理的消息。同样地,后端——它们应该全天候运行,但您仍然必须构建关闭代码,以防实例需要关闭(并且您会提前得到通知!)


然而,我怀疑你的问题(为什么会发生这种情况)在目前的形式下是可以回答的

没有必要把错误消息的来源放进去,它是通用的。我只是把来源放进去,主要是为了让其他收到相同错误的人能够找到它。由于问题中不允许使用完整的HTML代码,因此它保留了收到的完整错误。而且,事实上,它一直在变化,我无法恢复以前的错误,它们被保存了。正如你所说的那样<代码>显然,等待24小时服务器重置不是一个有效的解决方案。我正在查看。我不知道你所指的扩展日志在哪里,如果这不是它们的话。另外,请解释一个启用了计费功能的应用程序是如何超过配额的。计费的目的是对超过配额的任何资源进行收费。是的,就是这样。而不是你在仪表板下看到的那个。我知道付费应用程序仍有可能超过配额,因为系统中存在一些“安全”限制(每秒限制等无法覆盖)。但是TBH我没有考虑在那里启用的计费。