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
java中的Google应用程序引擎API中出现错误204_Java_Google App Engine_Runtime Error_Internal Server Error_Server Error - Fatal编程技术网

java中的Google应用程序引擎API中出现错误204

java中的Google应用程序引擎API中出现错误204,java,google-app-engine,runtime-error,internal-server-error,server-error,Java,Google App Engine,Runtime Error,Internal Server Error,Server Error,我们有一个带有谷歌应用程序引擎的API。API由搜索引擎组成,当用户请求productID时,API返回一个json以及一组其他productID(具有特定条件)。这是当前配置: <instance-class>F4_1G</instance-class> <automatic-scaling> <min-idle-instances>3</min-idle-instances> <max-idle-instances>au

我们有一个带有谷歌应用程序引擎的API。API由搜索引擎组成,当用户请求productID时,API返回一个json以及一组其他productID(具有特定条件)。这是当前配置:

<instance-class>F4_1G</instance-class>
<automatic-scaling>
<min-idle-instances>3</min-idle-instances>
<max-idle-instances>automatic</max-idle-instances>
<min-pending-latency>automatic</min-pending-latency>
<max-pending-latency>automatic</max-pending-latency>    
</automatic-scaling>
我们将常驻实例的数量从3更改为7,得到了相同的错误。同样,错误也发生在相同的实例中。我们在很短的时间内看到4个错误

我们发现问题出在urlfecth调用上。如果我们设置了一个高超时,那么它会返回很多错误


知道为什么会发生这种情况吗?

我相信我已经发现了问题所在。该问题与urlfetch调用有关。我做了很多测试,直到我发现问题。当我只调用数据存储时,一切都按预期进行。然而,当我添加urlfetch调用时,它产生了204个错误。它总是发生,所以我相信这可能是一个错误


为了消除这个错误,我从Google中删除了云端点,并使用了一个基本的servlet。我发现,将servlet与urlfetch调用混合使用不会出现错误,因此问题可能不仅与urlfetch有关,还与urlfetch和googlecloud端点的组合有关

日志中有什么显示吗?@jirungaray日志显示:处理此请求的进程遇到问题,导致其退出。这可能会导致应用程序的下一个请求使用新进程。(错误代码204)
{
"error": {
"errors": [
{
"domain": "global",
"reason": "backendError",
"message": ""
}
],
"code": 503,
"message": ""
}
}