I'm trying to use Push notifications for Google Calendar
Callback endpoint is hosted on Heroku. appname.herokuapp.com is verified in Search Console and added to Google Console APIs & Services Allowed domains list.
Request
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"
}
Response
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}"
}
}
What
WEB_HOOK channel unavailable
error means?
EDIT: same result with a top level domain which certificate's Subject matches exactly the domain name.
It's possible the calendar you're trying to sync wasn't properly selected. Check which calendars your Android device is receiving from Google Calendar. To do this, open your Google Calendar app and click on the hamburger menu in the top left corner.
Turn on Calendar storage. If it's still not syncing, then it may be because your phone is running out of storage. This means you'll have to free-up space by opening your phone's settings app and looking for Device maintenance. Once there, you'll see storage in the center. Click on storage to clean-up some space.
It appears that this was a temporary issue and is now fixed according to Google. (I also tested and seems to be working for me, now.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With