Open hiteshsalavi opened 3 years ago
@hiteshsalavi any updates on it?? I have the same issue
Did you solve this problem?
We have the same problem here! All roles and permissions have been added... :-(
Did anyone figure this out? Same issue here.
Edit Found the solution in this thread. Hidden away in google's documentation is a specific service account that needs publish permissions to the topic. The error message provided from the watch method is a terrible indicator of the actually underlying issue. https://stackoverflow.com/questions/43525182/gmail-users-watch-fails-to-send-test-message-to-pubsub-with-a-dwd-service-accoun/43645610#43645610
Has anyone figured this out? Same issue here in 2024
@chineduukpe The solution mentioned above worked for me just now.
Permissions
, click Add Principal
gmail-api-push@system.gserviceaccount.com
as new principalPub/Sub
> Publisher
as role
I want to implement watch for new mails in INBOX for a Google Workspace email ID.
Already Verified Pointers:
client_id
fromservice.json
file has domain wide delegated authorisation for the scope being used.Publisher
access.client_email
hasPublisher
access from thePub/Sub
Followed this solutionStill getting
Code: