Alexander Urmuzov
Alexander Urmuzov

Reputation: 139

Google Cloud Endpoints on Managed VMs

We had working solution for Cloud Endpoints on standard AppEngine, but recently we switched to Managed VMs https://cloud.google.com/appengine/docs/java/managed-vms/

Everything seems to work the same, except Cloud Endpoints.

I have the same results for production Managed VMs and local docker dev environment.

Some suspicious lines from gcloud preview app run output:

INFO: default: "POST /_ah/spi/BackendService.getApiConfigs HTTP/1.1" 404 29
INFO: default: "GET /_ah/api/discovery/v1/apis/admin/v1/rest?fields=servicePath%2Cresources%2Cparameters%2Cmethods&pp=0 HTTP/1.1" 500 60

I can't find out if Google Cloud Endpoints are supported on Managed VMs at all? And if they are supported what should I do to fix this issue?

Upvotes: 4

Views: 391

Answers (3)

dyeray
dyeray

Reputation: 1086

Cloud Endpoints are not supported on Managed VMs. You should migrate away from that combination, if you want to avoid problems in the future.

Upvotes: 0

Alexander Urmuzov
Alexander Urmuzov

Reputation: 139

Issue has been resolved by itself. I migrated to jax-rs while cloud endpoints were failing. Recently I tried to switch back cloud endpoints worked fine. Maybe it's related to appengine version, I'm nut sure. There were several version updates while I was on jax-rs.

Upvotes: 0

Nick
Nick

Reputation: 3591

getApiConfigs returning 404 is a sign that something is going wrong with the request to /_ah/spi/* - no handler is found. You should have defined a handler in your web.xml for this route when setting up your endpoints project. For this reason, the GET to the discovery doc path is failing with 500, since it internally calls the first path.

Upvotes: 0

Related Questions