Google App Engine/Managed VM Cloud Endpoints

2019-09-02 08:56发布

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条回答
我命由我不由天
2楼-- · 2019-09-02 09:24

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.

查看更多
登录 后发表回答