Google push.webhookUrlUnauthorized 错误
Google push.webhookUrlUnauthorized Error
我正在使用带有推送通知的 google 日历 API,直到昨天它工作正常但今天它给我错误:在这里。
HTTP/1.1 401 Unauthorized
Vary: X-Origin
WWW-Authenticate: Bearer realm="https://accounts.google.com/", error=invalid_token
Content-Type: application/json; charset=UTF-8
Date: Sat, 31 Oct 2015 06:43:59 GMT
Expires: Sat, 31 Oct 2015 06:43:59 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Server: GSE
Alternate-Protocol: 443:quic,p=1
Alt-Svc: quic=":443"; p="1"; ma=604800
Accept-Ranges: none
Vary: Origin,Accept-Encoding
Transfer-Encoding: chunked
{
"error": {
"errors": [
{
"domain": "global",
"reason": "push.webhookUrlUnauthorized",
"message": "Unauthorized WebHook callback channel: https://api.hustl.it/test.php"
}
],
"code": 401,
"message": "Unauthorized WebHook callback channel: https://api.hustl.it/test.php"
}
}
根据日历 API 开发人员指南的 Push Notifications 页面,应在网络服务器上安装有效的 SSL 证书。您可以先查看当前安装的SSL证书是否已过期或被删除。
另请注意,无效证书包括
- 自签名证书。
- 由不受信任的来源签署的证书。
- 已被吊销的证书。
- 主题与目标主机名不匹配的证书。
根据页面考虑的另一个重要事项是 address
值中使用的 URL 中的域应在 Google Developer Console
中注册
希望对您有所帮助!
我正在使用带有推送通知的 google 日历 API,直到昨天它工作正常但今天它给我错误:在这里。
HTTP/1.1 401 Unauthorized
Vary: X-Origin
WWW-Authenticate: Bearer realm="https://accounts.google.com/", error=invalid_token
Content-Type: application/json; charset=UTF-8
Date: Sat, 31 Oct 2015 06:43:59 GMT
Expires: Sat, 31 Oct 2015 06:43:59 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Server: GSE
Alternate-Protocol: 443:quic,p=1
Alt-Svc: quic=":443"; p="1"; ma=604800
Accept-Ranges: none
Vary: Origin,Accept-Encoding
Transfer-Encoding: chunked
{
"error": {
"errors": [
{
"domain": "global",
"reason": "push.webhookUrlUnauthorized",
"message": "Unauthorized WebHook callback channel: https://api.hustl.it/test.php"
}
],
"code": 401,
"message": "Unauthorized WebHook callback channel: https://api.hustl.it/test.php"
}
}
根据日历 API 开发人员指南的 Push Notifications 页面,应在网络服务器上安装有效的 SSL 证书。您可以先查看当前安装的SSL证书是否已过期或被删除。
另请注意,无效证书包括
- 自签名证书。
- 由不受信任的来源签署的证书。
- 已被吊销的证书。
- 主题与目标主机名不匹配的证书。
根据页面考虑的另一个重要事项是 address
值中使用的 URL 中的域应在 Google Developer Console
希望对您有所帮助!