Google App Engine /托管虚拟云端点 [英] Google App Engine/Managed VM Cloud Endpoints

本文介绍了Google App Engine /托管虚拟云端点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们目前正在运行App Engine(Java),并且想要测试Google正在测试的新托管虚拟机。



一切都在建立,但我可以' t

当我构建时,返回的错误是:


SEVERE:端点配置未更新。当Google Cloud Endpoints服务器尝试与其通信
时,该应用返回了
错误。


在admin日志我可以看到它已经尝试了,但是错误又回来了:

lockquote
API配置更新失败

发现文档是在本地创建的,但日志中没有任何内容。
我可以看到POST到getApiConfigs,但没有关于失败的详细信息。



希望其他人遇到同样的问题并可以提供帮助吗?



实际上,我的问题是,我需要做些什么才能让云端点在App Engine的托管虚拟机上运行?



感谢

解决方案

您是否在 https://console.cloud.google.com/logs/viewer
我有同样的问题,在检查日志后,我意识到我有两个具有相同API名称和版本的类,但一个具有名称空间,另一个没有。



具有相同API名称和版本的所有API类必须具有完全相同的API范围配置。



我只是将命名空间设置为相同API和它的工作。


We're currently running on App Engine (Java) and want to test the new managed VMs that Google are beta testing.

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.

In the admin logs I can see that it has attempted, but the error comes back:

API configuration update failed

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.

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?

Thanks

解决方案

Have you checked your logs at 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.

All API classes with the same API name and version must have the exact same API-wide configuration.

I just set the namespace to be the same for both API's and it worked.

这篇关于Google App Engine /托管虚拟云端点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆