4

My application uses the Push Notifications API (also known as Channel Subscriptions or Webhooks in the documentation) with the Reports API to get real-time updates about auth tokens.

Every 6 hours, our application makes a request to https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/token/watch (as per the documentation at https://developers.google.com/admin-sdk/reports/v1/reference/activities/watch and https://developers.google.com/admin-sdk/reports/v1/guides/push). That request includes address=https://example.com/google_tokens. That URL then immediately receives a "sync" request with no body, but headers like this:

X-Goog-Channel-Expiration: Fri, 19 Oct 2018 20:55:08 GMT
X-Goog-Channel-ID: 62c1c0ed-8519-4f00-836f-2cbc113a1d2e
X-Goog-Message-Number: 1
X-Goog-Resource-ID: JfrjzGpcrVZETb17lpUzzOEVbDw
X-Goog-Resource-State: sync
X-Goog-Resource-URI: https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/token?alt=json

Until about 8 days ago, we would then start getting requests at that URL whenever someone uses GSuite SSO to sign into another app. We are still getting the sync requests, but no other push notifications have been received. We aren't getting any data from this API any more. Prior to 8 days ago this was all working perfectly. We have not made any changes to that infrastructure.

The last non-sync webhook was received around 2018-10-11 22:00 UTC. We are still getting the sync requests whenever we use the /watch API.

We have another application on the same infrastructure that also uses the Push Notifications API, but for admin/directory/v1/users instead. That application has been working perfectly all this time. So, what could be causing us to not receive anything after the sync requests for tokens?

jelder
  • 2,220
  • 2
  • 19
  • 17
  • 1
    I contacted Google support and they eventually admitted to an internal outage. – jelder Jan 08 '19 at 21:56
  • 1
    Is it still happening? I am facing this issue today as couple of days ago everything working fine but today If I create a channel, I am receiving "Sync" state but after that, I am not receiving any webhooks calls. – Raj Jagani Sep 06 '19 at 12:47
  • Same here. I had push notifications working all good until recently it stopped pushing notifications even if the webhook renews. Contacted Google support but the support representative points back to this forum. Any clue? – jasonleakey Aug 03 '20 at 23:51
  • There's an entry for this bug on Google's Issue Tracker. Upvote/star the issue bring more attention to it: https://issuetracker.google.com/issues/236988209 – TheAddonDepot Jun 24 '22 at 20:02

0 Answers0