Google Cloud Endpoints API调用ServiceException

时间:2022-08-22 11:11:04

I have deployed a Cloud Endpoints API to GAE. Everything looks fine, all methods are listed in the API explorer. However, when I try to call any method, I get a 503 error. The following exception is being thrown:

我已经为GAE部署了一个Cloud Endpoints API。一切都很好,所有方法都列在API资源管理器中。但是,当我尝试调用任何方法时,我收到503错误。抛出以下异常:

com.google.api.server.spi.ServiceException: Two or more Endpoint classes are mapped to the same service name (MyApiClass): MyApiClass MyApiClass

Any suggestions to make it work?

有什么建议让它起作用吗?

1 个解决方案

#1


0  

Solved: My API file wasn't inside a package, it was directly in src/main/java. Somehow, the error disappeard after I put it in a package.

解决:我的API文件不在包内,它直接在src / main / java中。不知何故,我把它放入包装后错误就消失了。

#1


0  

Solved: My API file wasn't inside a package, it was directly in src/main/java. Somehow, the error disappeard after I put it in a package.

解决:我的API文件不在包内,它直接在src / main / java中。不知何故,我把它放入包装后错误就消失了。