首页 > 解决方案 > 请求缺少所需的身份验证凭据。预期的 OAuth 2 访问令牌、登录 cookie 或其他有效的身份验证凭据(部署)

问题描述

我想将 BitBucket 部署到 Google App Engine,我已经使用bitbucket-cloud/docs/deploy-to-google-cloud/这个链接完成了所有配置。我收到以下错误,您可以在 bitbucket 部署中看到我的日志如下:-

apitools.base.py.exceptions.HttpBadRequestError: HttpError accessing <https://appengine.googleapis.com/v1/apps/evadev0010/services/default/versions?alt=json>: response: <{'vary': 'Origin, X-Origin, Referer', 'content-type': 'application/json; charset=UTF-8', 'date': 'Mon, 29 Jun 2020 11:56:01 GMT', 'server': 'ESF', 'cache-control': 'private', 'x-xss-protection': '0', 'x-frame-options': 'SAMEORIGIN', 'x-content-type-options': 'nosniff', 'alt-svc': 'h3-27=":443"; ma=2592000,h3-25=":443"; ma=2592000,h3-T050=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"', 'transfer-encoding': 'chunked', 'status': '400', 'content-length': '145', '-content-encoding': 'gzip'}>, content <{
  "error": {
    "code": 400,
    "message": "WEB-INF/appengine-web.xml is required for this runtime.",
    "status": "INVALID_ARGUMENT"
  }
}
>
ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: WEB-INF/appengine-web.xml is required for this runtime.
+ status=1
+ set -e
+ 

解决此问题的任何帮助

{
  "error": {
    "code": 401,
    "message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
    "status": "UNAUTHENTICATED"
  }
}

谢谢你

标签: javagoogle-app-enginegwtbitbucket

解决方案


推荐阅读