0

When using google-api-python-client to stop receiving push notifications, it returns Error 404: Channel not found

I call the method as follows:

body = {
           'id': "0ddjjjdkd-b29b-asdb-9493-d698abcdkj",
           'resourceId': "33sansej8i-hT3Tj0abcdFybQKiU"
       }
reports_service.channels().stop(body=body).execute()

The response received is as follows:

HttpError: https://www.googleapis.com/admin/reports/v1/admin/reports_v1/channels/stop? returned "Not Found">

A previous SO post (Stop watching google push notifications) explained that the URL was incorrect. However, on trying the recommended URL in Oauth playground, I get the same result. Moreover, I get a result message: "Channel 'f276e057-b177-41be-b7ds6-392nnn32' not found for project '407408718192'" I have no project with this ID.

Any help would be greatly appreciated. Thank you.

Community
  • 1
  • 1
Jesna James
  • 75
  • 1
  • 8

0 Answers0