Java 为Google cloud API端点设置路径时找不到404

Java 为Google cloud API端点设置路径时找不到404,java,android,google-app-engine,google-cloud-endpoints,Java,Android,Google App Engine,Google Cloud Endpoints,我定义的谷歌云端点如下: @ApiMethod( name = "listcontacts", path = "contacts/myUser", httpMethod = ApiMethod.HttpMethod.GET) public CollectionResponse<myUser> listContacts(@Named("phones")String[] phones) { 但是,如果我将路径设置为“myUser”,它将正

我定义的谷歌云端点如下:

@ApiMethod(
        name = "listcontacts",
        path = "contacts/myUser",
        httpMethod = ApiMethod.HttpMethod.GET)
public CollectionResponse<myUser> listContacts(@Named("phones")String[] phones) {

但是,如果我将路径设置为“myUser”,它将正常工作。问题是它与另一个具有相同路径的api方法冲突。

Hi@dustedrob,这里也有同样的问题。到目前为止,我认为这是gapi客户机的问题。您是否可以确认a)您正在使用gapi客户端b)devserver和部署的应用程序会发生这种情况c)您正在使用哪个版本的AppEngine SDK?尝试在没有gapi客户端的情况下调用api url。如果您的api方法路径是/myapi/something,请调用yourdomain/\u ah/api/yourapi/v1/myapi/something
com.google.api.client.googleapis.json.GoogleJsonResponseException: 404 Not Found