+1 vote

I am experiencing issues with the GoogleAPI.GetEmailPlus() call for the past two weeks (with no changes to my system in that time).

I am using the following namespaces:

Limilabs.Client;
Limilabs.Client.Authentication.Google;
Limilabs.Client.IMAP;
Limilabs.Client.SMTP;
Limilabs.Mail;
Limilabs.Mail.Headers;
Limilabs.Mail.MIME;

We implement the call to GetEmailPlus(token) in the following two lines:

var api = new GoogleApi(AccessToken);
var emailAddress = api.GetEmailPlus();

However, upon execution of the second line, we receive the following (abbreviated) StackTrace:

at System.Collections.Generic.Dictionary'2.get_Item(TKey key)
at Limilabs.Client.Authentication.Google.GoogleApi. (String     Response)
at Limilabs.Client.Authentication.Google.GoogleApi.GetEmailPlus()

...
(our code which calls GetEmailPlus(), as the sample documentation does).

This call began failing for us on Thursday, September 13th, 2018.

by
reshown by
I assume you are using OAuth2 - Correct?

Can you please run Fiddler and check the request to: https://www.googleapis.com/plus/v1/people/me

If you skip the GetEmailPlus method and provide hard-coded, correct email address instead - are you able to access Imap?
Hello Limilabs support,

Thank you for your quick response!

I have dug a little deeper, and found that Google has changed their OAuth flow. While my bug is based on their changes, and not with your service, I would imagine that you may see effects from this in the near future.

I found this GitHub, which references the changes we're undertaking:
--https://github.com/golang/oauth2/issues/310
Thanks for the info. I'll copy the issue as a answer, so it's easier for others to find.
...