【问题标题】:Google Cloud Endpoints API-call ServiceExceptionGoogle Cloud Endpoints API 调用 ServiceException
【发布时间】:2017-08-09 13:16:34
【问题描述】:

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

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

有什么建议可以让它发挥作用吗?

【问题讨论】:

  • 你能把你的web.xml的内容包括进来吗?

标签: java api google-app-engine google-cloud-endpoints google-cloud-endpoints-v2


【解决方案1】:

已解决:我的 API 文件不在包中,而是直接在 src/main/java 中。不知何故,我把它放在一个包里后错误就消失了。

【讨论】:

    猜你喜欢
    • 2018-12-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-07-13
    • 2013-12-30
    • 2018-12-18
    • 2013-11-07
    相关资源
    最近更新 更多