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

huangapple go评论77阅读模式
英文:

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

问题

我一直卡在从Eclipse部署到"APP Engine"这一步,总是出现以下错误消息。我可以考虑的可能操作都尝试了,但都失败了。

出现错误时,正在检索项目: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. 应用程序(Java Servlet)在调试级别正常运行。
  2. 2018年左右,从Eclipse部署到App Engine工作正常。
  3. 可用的软件已经是最新的。
  4. 我按照Java 8部署手册(Google)的说明重新初始化了项目,并成功验证了我的帐户。
    https://cloud.google.com/appengine/docs/standard/java/building-app/environment-setup?hl=ja

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

英文:

I have been stuck at "Deploy to APP Engine" from Eclipse, and following error message always popped up. Possible actions what I can think of were taken but all failed.

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"
}

Here is my situation what I have right now.

  1. Application(Java Servlet) run normally in debug level
  2. "Deploy to App Engine" from Eclipse was working fine in 2018 around
  3. Available software have been up to date
  4. I followed instruction of Java 8 Deploy manual (Google), and re-init the project and authenticated my account successfully
    <https://cloud.google.com/appengine/docs/standard/java/building-app/environment-setup?hl=ja>

Does anyone help me to solve this problem? I want to deploy my application to the Google Cloud Platform.

答案1

得分: 2

我可以通过退出然后重新登录Google Plugin for Eclipse来解决这个问题。由于我在2018年保持登录我的Google账户,OAuth令牌已过期。

英文:

I cloud resolve this problem by signing out and back into the Google Plugin for Eclipse. The OAuth tokens had been expired since I kept logged in my google account in 2018.

huangapple
  • 本文由 发表于 2020年8月10日 16:26:45
  • 转载请务必保留本文链接:https://go.coder-hub.com/63336639.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定