我在生成我建的AppEngine标准信封JDK8与吉斯的API的CloudEndpoints的过程中,我的工作OSX。
继我有教程:
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/[email protected]")
}
所以我想补充说,每个API,但仍然得到了同样的错误。
帮助需要和感激:)。
这个错误意味着有什么毛病的OpenAPI的配置文件。首先,尝试验证它是有效的YAML。如果是,那么尝试用扬鞭/ OpenAPI的工具验证的配置。