Google App Engine/Managed VM Cloud Endpoints

送分小仙女□ 提交于 2019-12-13 08:42:20

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/33697803/google-app-engine-managed-vm-cloud-endpoints

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!