com.google.api.client.auth.oauth2.TokenResponseException: 400 错误请求 (Eclipse)

com.google.api.client.auth.oauth2.TokenResponseException: 400 Bad Request (Eclipse)

我一直卡在 Eclipse 的“部署到 APP Engine”,并且总是弹出以下错误消息。我能想到的可能的行动都采取了但都失败了。

An error occurred while retrieving projects: com.google.api.client.auth.oauth2.TokenResponseException: 400 Bad Request
{
  "error" : "invalid_grant",
  "error_description" : "Bad Request"
}
com.google.api.client.auth.oauth2.TokenResponseException: 400 Bad Request
{
  "error" : "invalid_grant",
  "error_description" : "Bad Request"
}

这是我现在的情况。

  1. Application(Java Servlet) 运行 通常处于调试级别
  2. Eclipse 中的“部署到 App Engine”在 2018 年左右运行良好
  3. 可用软件已更新
  4. 我按照 Java 8 部署手册 (Google) 的说明进行操作,并重新启动项目并成功验证了我的帐户 https://cloud.google.com/appengine/docs/standard/java/building-app/environment-setup?hl=ja

有人帮我解决这个问题吗?我想将我的应用程序部署到 Google 云平台。

我通过注销并重新登录 Eclipse 的 Google 插件解决了这个问题。自从我在 2018 年一直登录我的 google 帐户以来,OAuth 令牌已过期。