Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WEB_HOOK channel unavailable when trying to retrieve Google calendar events

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.

like image 965
user1074965 Avatar asked Jun 18 '18 23:06

user1074965


People also ask

Why am I getting a sync error on my Google Calendar?

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.

Why is my Google Calendar not syncing with my Android?

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.


1 Answers

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.)

like image 186
Mitch Eagles Avatar answered Oct 11 '22 04:10

Mitch Eagles