我一直卡在 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 部署手册(Google)的说明进行操作,重新初始化项目并成功验证了我的帐户 https://cloud.google.com/appengine/docs/standard/java/building-app/environment-setup?hl=ja
有人能帮我解决这个问题吗?我想将我的应用程序部署到 Google Cloud Platform。
最佳答案
我通过注销并重新登录 Google Plugin for Eclipse 来解决此问题。自 2018 年我一直登录 Google 帐户以来,OAuth token 已过期。
关于java - com.google.api.client.auth.oauth2.TokenResponseException : 400 Bad Request (Eclipse),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63336639/