Skip to main content


Showing posts from March, 2019

Gmail API - Invalid topicName does not match projects/../topics/*

I am exploring the Google Cloud PubSub these days. I am working on a project where I have to listen for the User's Gmail Inbox and then process the new emails as they arrive. I used a Gmail Client API to add the  watch  on user's Gmail. I encountered the following exception Exception in thread "main" 400 Bad Request {   "code" : 400,   "errors" : [ {     "domain" : "global",     "message" : "Invalid topicName does not match projects/modular-botany-234216/topics/*",     "reason" : "invalidArgument"   } ],   "message" : "Invalid topicName does not match projects/modular-botany-234216/topics/*" } at Solution After a bit of struggle and google, I found that I have created th