java - com.google.api.client.auth.oauth2.TokenResponseException: 400 错误请求 (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"
}
这是我现在的情况。
- 应用程序(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 年继续登录我的谷歌帐户以来,OAuth 令牌已经过期。
推荐阅读
- c++ - C++ 模板实例化,错误:非类类型“int”的成员
- extjs - ExtJs ComboBox 刷新选定(原始)值
- python - Python Pandas - excel中的sumif - 标准和范围相同的df volumn
- r - R闪亮模块修改DF中的列类不在模块中工作,但在“正常”R中工作
- reactjs - 使用 React 仅部署静态文件的 Gh 页面
- powershell - 使用 PowerShell 脚本从 Azure Blob 存储读取 JSON 文件并写回 Blob 存储中的另一个文件
- swift - NSData 中的 Data.map 实现
- python - 如何从 url 获取文件,然后像本地一样读取它?
- github - Github 2FA 不允许我推送到分支
- javascript - 如何将画布视频发送到嵌入的 Discord?