我试图使用Push notifications for Google Calendar
回调端点托管在Heroku上。 appname.herokuapp.com 在Search Console中得到验证,并已添加到Google控制台API&服务允许域列表。
请求
POST /calendar/v3/calendars/CALENDAR_ID/events/watch HTTP/1.1
Host: www.googleapis.com
Authorization: Bearer TOKEN
Content-Type: application/json
{
"id":"1",
"type": "web_hook",
"address":"https://APPNAME.herokuapp.com/change"
}
响应
400 Bad Request
{
"error": {
"errors": [
{
"domain": "push",
"reason": "channelUnknown",
"message": "WEB_HOOK channel unavailable for:
{address=https://APPNAME.herokuapp.com/change}"
}
],
"code": 400,
"message": "WEB_HOOK channel unavailable for: {address=https://APPNAME.herokuapp.com/change}"
}
}
什么
WEB_HOOK频道不可用
错误意味着什么?
编辑:与顶级域名相同的结果,证书的主题与域名完全匹配。