【发布时间】:2020-11-29 20:21:07
【问题描述】:
我一直卡在 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"
}
这是我现在的情况。
- 应用程序(Java Servlet)在调试级别正常运行
- Eclipse 的“部署到 App Engine”在 2018 年左右运行良好
- 可用软件已更新
- 我按照 Java 8 Deploy 手册 (Google) 的说明重新启动项目并成功验证了我的帐户 https://cloud.google.com/appengine/docs/standard/java/building-app/environment-setup?hl=ja
有人帮我解决这个问题吗?我想将我的应用程序部署到 Google Cloud Platform。
【问题讨论】:
-
在这个Stackoverflow link 中似乎解决了类似的问题,用户似乎已经通过退出并重新登录 Google Plugin for Eclipse 解决了这个问题,因为 OAuth 令牌可能已过期
-
非常感谢您解决了我的问题!我花了超过 2 天的时间来解决这个问题。你是我的英雄。
标签: java eclipse google-app-engine deployment oauth-2.0