【发布时间】:2019-07-04 03:03:35
【问题描述】:
我正在使用 Guice 为基于 AppEngine Std Env JDK8 构建的 API 生成 CloudEndpoints,并且我正在使用 OSX。
按照我的教程:
- 添加了我的项目。 ID 到我的
pom.xml - 运行
mvn endpoints-framework:openApiDocs - 运行
gcloud endpoints services deploy target/openapi-docs/openapi.json
第 1 步和第 2 步成功,而第 3 步失败并显示消息:
ERROR: (gcloud.endpoints.services.deploy) INVALID_ARGUMENT: ERROR: unknown location: Cannot convert to service config.
我的 API 没有使用 issuers 属性,例如:
issuers = {
@ApiIssuer(
name = "firebase",
issuer = "https://securetoken.google.com/<PRJ-ID>",
jwksUri = "https://www.googleapis.com/robot/v1/metadata/x509/securetoken@system.gserviceaccount.com")
}
所以我尝试将它添加到每个 API,但仍然出现相同的错误。
需要帮助并表示赞赏:)。
【问题讨论】:
标签: google-cloud-endpoints google-cloud-endpoints-v2