2015-10-31 85 views
0

我使用谷歌日历API与推送通知,直到昨天它工作正常,但今天它给了我错误:在这里。谷歌push.webhookUrlUnauthorized错误

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" 
} 
} 

回答

1

基于Push Notifications页日历API,开发者指南上,有效的SSL证书应安装在web服务器上。如果当前安装的SSL证书过期或已被删除,您可以先检查它。

还要注意的是无效的证书包括

  • 自签名证书。
  • 由不受信任来源签名的证书。
  • 已撤销的证书。
  • 具有与目标主机名不匹配的主题的证书。

考虑基于页面的另一个重要项目是在address值用在URL中的域名应在Google Developer Console

希望这有助于进行注册!