duanpai6581 2015-10-31 06:47
浏览 62
已采纳

谷歌push.webhookUrlUnauthorized错误

I'm using google calendar API with push notification, till yesterday it was working fine but today it gives me error : here it is.

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条回答 默认 最新

  • douhan1992 2015-12-16 07:46
    关注

    Based on the Push Notifications page of the Calendar API developer guide, a valid SSL certificate should be installed on the webserver. You can check it out first if the SSL certificate currently installed expired or was removed.

    Also note that invalid certificates include

    • Self-signed certificates.
    • Certificates signed by an untrusted source.
    • Certificates that have been revoked.
    • Certificates that have a subject that doesn't match the target hostname.

    Another important item to consider based on the page is that the domain in URL used in the address value should be registered in the Google Developer Console

    Hope this helps!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 phython如何实现以下功能?查找同一用户名的消费金额合并—
  • ¥15 孟德尔随机化怎样画共定位分析图
  • ¥18 模拟电路问题解答有偿速度
  • ¥15 CST仿真别人的模型结果仿真结果S参数完全不对
  • ¥15 误删注册表文件致win10无法开启
  • ¥15 请问在阿里云服务器中怎么利用数据库制作网站
  • ¥60 ESP32怎么烧录自启动程序
  • ¥50 html2canvas超出滚动条不显示
  • ¥15 java业务性能问题求解(sql,业务设计相关)
  • ¥15 52810 尾椎c三个a 写蓝牙地址