google-apps - Google Oauh2 验证无效参数
问题描述
我正在尝试通过谷歌控制台提交验证申请,因为它从今天开始开放。
我已经通过 Goofle Search Console 验证了有问题的域,我确保所有链接都已设置(政策、使用条款等),并在表格中填写了有关需要验证的范围的信息和说明。
当我提交表单时,我没有收到它已提交的响应,但在开发人员工具中来自网络的响应我看到它是 400 HTTP 状态,并且我看到以下错误消息:
{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT"
}
}
我已经仔细检查了我的步骤,但仍然无法解决这个问题,您可以提供的任何信息都会很棒。
添加请求:
https://clientauthconfig.clients6.google.com/v1/brands/ID/submitReview?alt=json&key=AIzaSysnipsnip0DjtiCwWBwQ1djDy741g
上面的请求是 PUT,这里是正文内容
{"brandId":"ID","scopeRationale":"","additionalInfo":"","contactEmail":"contactmeialaddress@gmail.com","pendingScopes":["https://mail.google.com/","https://www.googleapis.com/auth/gmail.modify","https://www.googleapis.com/auth/gmail.compose","https://www.googleapis.com/auth/gmail.insert","https://www.googleapis.com/auth/gmail.readonly","https://www.googleapis.com/auth/contacts.readonly"],"category":[1,3,5],"scopeDetails":[{"apiGroup":1,"pendingScopes":["https://mail.google.com/","https://www.googleapis.com/auth/gmail.modify","https://www.googleapis.com/auth/gmail.compose","https://www.googleapis.com/auth/gmail.insert","https://www.googleapis.com/auth/gmail.readonly"],"scopeRationale":"Why we need access to this scope."},{"apiGroup":2,"pendingScopes":["https://www.googleapis.com/auth/contacts.readonly"],"scopeRationale":"Additional info why we need this."}]}
解决方案
推荐阅读
- angular - 第一个 http 请求在第二个之后结束。如何解决?
- tensorflow - 如何使用 Tensorflow Keras api 从预训练模型中复制特定层权重?
- cygwin - cygwin中strace的输出格式
- c# - WPF DataGrid - 动态两种方式绑定到 ObservableCollection 中的 T 实例
- kubernetes - 如何在 helm repo 下列出所有可用的图表?
- c - 为什么这个 C 代码会导致分段错误?试图理解指针
- google-apps-script - 如何使用 UrlFetchApp 为 Transloadit API 格式化 JSON 参数
- jupyter-notebook - Jupyter 笔记本没有运行代码。卡在 [*] 直到被打断并再次运行
- selenium - 如何并行化硒爬虫?
- python - 如何在 Python 中创建一个遍历列表的函数?