简体   繁体   English

Google App Engine /托管的VM云端点

[英]Google App Engine/Managed VM Cloud Endpoints

We're currently running on App Engine (Java) and want to test the new managed VMs that Google are beta testing. 我们目前正在App Engine(Java)上运行,并希望测试Google正在Beta测试的新托管VM。

Everything builds, but I can't get any of the endpoints to work. 一切都建立了,但是我无法使用任何端点。

When I build, the error that comes back is: 当我构建时,返回的错误是:

SEVERE: Endpoints configuration not updated. 严重:端点配置未更新。 The app returned an error when the Google Cloud Endpoints server attempted to communicate with it. 当Google Cloud Endpoints服务器尝试与其通信时,该应用程序返回错误。

In the admin logs I can see that it has attempted, but the error comes back: 在管理日志中,我可以看到它已经尝试过,但是错误再次出现:

API configuration update failed API配置更新失败

The discovery docs get created locally, but there isn't anything in the logs. 发现文档在本地创建,但日志中没有任何内容。 I can see the POST to the getApiConfigs, but no details on the failure. 我可以看到POST到getApiConfigs,但是没有关于失败的详细信息。

Hopefully someone else has encountered the same problem and can help? 希望其他人也遇到过同样的问题并且可以提供帮助吗?

In essence my question is, what do I need to do to get cloud endpoints running on a managed VM for App Engine? 本质上,我的问题是,要使云终结点在App Engine的托管VM上运行,我需要做什么?

Thanks 谢谢

Have you checked your logs at https://console.cloud.google.com/logs/viewer ? 您是否在https://console.cloud.google.com/logs/viewer中检查了日志? I had the same problem and after checking the logs I realized that I had two classes with the same API name and version but one had namespace and the other didn't. 我遇到了同样的问题,在检查了日志之后,我意识到我有两个类具有相同的API名称和版本,但是一个类具有名称空间,而另一个没有。

All API classes with the same API name and version must have the exact same API-wide configuration. 具有相同API名称和版本的所有API类必须具有完全相同的API范围配置。

I just set the namespace to be the same for both API's and it worked. 我只是将两个API的命名空间都设置为相同,并且它起作用了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM