英文:
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"
}
这是我现在的情况。
- 应用程序(Java Servlet)在调试级别正常运行。
- 2018年左右,从Eclipse部署到App Engine工作正常。
- 可用的软件已经是最新的。
- 我按照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.
- Application(Java Servlet) run normally in debug level
- "Deploy to App Engine" from Eclipse was working fine in 2018 around
- Available software have been up to date
- 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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论