【问题标题】:Meteor Google Calendar Push notification "Unauthorized WebHook callback channel"Meteor 谷歌日历推送通知“未经授权的 WebHook 回调通道”
【发布时间】:2016-04-13 05:26:26
【问题描述】:

我想使用谷歌日历通知。 我已将 Meteor 应用程序部署到 https://google-push-notification.meteor.com 我已经在 google web master 中验证了 url。 在 Google Console 的域验证中添加了相同的域。 我为 get 和 post 方法创建了 https://google-push-notification.meteor.com/api/articles 的 Meteor rest api。 下面是api的postman合集。 https://www.getpostman.com/collections/106be7c94d35fcbdb0f8

Post https://www.googleapis.com/calendar/v3/calendars/abc@gmail.com/events/watch

Authorization: Bearer ya29.YwJdqjlSv8Tkl5MEJgiVXQPGxE24ZfITuf8gt0C8DO_VHDvB_1mRAgpAx64R6Wpw8I6fiw

Content-Type: application/json

{


"id": "ya29.XwI-RJ54rS3dbRHgak8V_iTuV7uAWJoZfRFnUE76uCIIUbw4eILPsdEME56Jm5_EfDtWWWs", 

"type": "web_hook",

"address": "https://google-push-notification.meteor.com/api/items"


}

I am getting the following response

{
"error": {
    "errors": [
        {
            "domain": "global",
            "reason": "push.webhookUrlUnauthorized",
            "message": "Unauthorized WebHook callback channel: https://google-push-notification.meteor.com/api/articles"
        }
    ],
    "code": 401,
    "message": "Unauthorized WebHook callback channel: https://google-push-notification.meteor.com/api/articles"
}

}

为什么即使我在 google 中验证了我的网站并在 google 控制台中添加了相同的域,我也会收到 push.webhookUrlUnauthorized 响应。 谁能帮我们解决这个问题

【问题讨论】:

    标签: meteor google-calendar-api google-authentication


    【解决方案1】:

    根据谷歌forum,请确保您已验证以下项目:

    1. 请务必按照以下步骤正确验证该域确实属于您:https://support.google.com/webmasters/answer/35179
    2. 它必须是 https 端点,并且按照此处的说明,开发者控制台中也必须存在相同的端点:https://developers.google.com/google-apps/calendar/v3/push#registering

    希望这能解决您的问题。干杯!

    【讨论】:

    • 是的。我已正确执行步骤并多次验证。这个google-push-notification.meteor.com/api/articles 是我的网络挂钩网址。它包含 https 和 google-push-notification.meteor.com 在谷歌网站管理员中验证并在域列表中添加相同,
    • 您的问题解决了吗?我在 google API 的通知上有同样的错误,我的 conf 应该没问题..(我可以访问其他网络服务,如列出我的日历和修改事件,我的域已注册和 https)
    猜你喜欢
    • 1970-01-01
    • 2017-07-20
    • 2014-07-18
    • 2021-04-15
    • 2018-03-06
    • 2014-11-02
    • 1970-01-01
    • 1970-01-01
    • 2017-06-06
    相关资源
    最近更新 更多