我有一个在 App Engine Flex 上运行的应用程序(Google Go 运行时,在 docker 运行时中有几个额外的文件)。它工作正常,没有任何问题。
然后我添加了 Google Cloud Endpoints,突然间我收到了每个请求的 502s,直接进入应用程序并通过 Cloud Endpoints。
登录实例,看起来 nginx-proxy 本身正在抛出错误。
Downloading Endpoints Service Configuration to /etc/nginx/endpoints/service.json
curl: (22) The requested URL returned error: 403 Forbidden
Failed to obtain Endpoints Service Configuration from Service Management API
/sbin/start-stop-daemon: warning: failed to kill 26: No such process
app.yaml 的唯一补充是
endpoints_api_service:
name: "redacted.appspot.com"
config_id: "2017-06-01r0"
我正在运行最新版本的 gcloud。我在部署 openapi.yaml 文件时收到 403 禁止,然后我更新到了解决该问题的最新 gcloud。不确定这是否相关。
有没有人遇到过这种情况?
事实证明,核心问题是我第一次用来上传谷歌云端点的 gcloud 版本允许我使用不受支持的参数(文件)。切换到通配符后,一切正常。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句