googleapis_auth icon indicating copy to clipboard operation
googleapis_auth copied to clipboard

When using userconsent browser flow and trying to use with the PeopleApi package kicks out two errors

Open cjsmith26 opened this issue 6 years ago • 0 comments

Steps to reproduce:

   return authBrowser
     .createImplicitBrowserFlow(_identifier, _googleScopes)
     .then((authBrowser.BrowserOAuth2Flow flow) {

       flow
         .clientViaUserConsent()
         .then((auth.AuthClient client) async {

            await new PeopleApi(client).people
             .get('people/me', personFields: 'coverPhotos,emailAddresses')
             .then( (Person person) {
                print(person);
        });

This looks like it actually does a network retrieve with the data in the response, but it kicks out two errors: Refused to set unsafe header "content-length", Refused to set unsafe header "user-agent";

cjsmith26 avatar Nov 18 '18 22:11 cjsmith26