Home 500 error.Internal[backend error] Google Api Push #gmail_watch
Reply: 0

500 error.Internal[backend error] Google Api Push #gmail_watch

varun reddy
1#
varun reddy Published in 2017-12-07 18:01:04Z

I tried to get notifications using the guide Here. https://developers.google.com/gmail/api/guides/push#gmail_watch

Gmailservice(service) is able to get Labels,Inbox and other api features.

Here is the code.

        var service = new GmailService(new BaseClientService.Initializer()
    {
        HttpClientInitializer = credential,
        ApplicationName = ApplicationName,
    });
    IList<string> label = new List<string>();
    label.Add("INBOX");
    WatchRequest request2 = new WatchRequest
    {
        LabelIds = label,
        LabelFilterAction = "include",
        TopicName = "projects/******/topics/****TestTopic"
    };
    var x= service.Users.Watch(request2, "me").Execute();

Watch Throws This Exception

Google.Apis.Requests.RequestError
Backend Error [500]
Errors [
    Message[Backend Error] Location[ - ] Reason[backendError] Domain[global]
]
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.30559 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO