Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error deserializing JSON credential data. #684

Closed
SurferJeffAtGoogle opened this issue Feb 18, 2016 · 5 comments
Closed

Error deserializing JSON credential data. #684

SurferJeffAtGoogle opened this issue Feb 18, 2016 · 5 comments
Assignees

Comments

@SurferJeffAtGoogle
Copy link

Error reading credential file from location C:\Users\Jeffrey Rennie\AppData\Roaming\gcloud\application_default_credentials.json: Error deserializing JSON credential data.
Please rerun 'gcloud auth login' to regenerate credentials file.

Line 136: // Use Application Default Credentials.
Line 137: var credentials = Google.Apis.Auth.OAuth2.GoogleCredential
Line 138: .GetApplicationDefaultAsync().Result;
Line 139: credentials = credentials.CreateScoped(new[] {

This code fails with this error with
Google.Apis.Datastore.v1beta2 1.10.0.280

It succeeds without error with
Google.Apis.Datastore.v1beta2.1.10.0.270

@SurferJeffAtGoogle
Copy link
Author

The code was in a lib, which caused problems. This fixed it:
install-package Microsoft.Bcl.Build
install-package Microsoft.Bcl.Async
install-package Microsoft.Net.Http

@peleyal
Copy link
Collaborator

peleyal commented Feb 19, 2016

Awesome!
Thanks for updating us all.
Enjoy the weekend,
Eyal

@panuganti
Copy link

Awesome!.. That solution fixes the issue for me.

@pavelgon28
Copy link

pavelgon28 commented Oct 10, 2016

I had conflict difference version library Newtonjson.

@jskeet
Copy link
Collaborator

jskeet commented Oct 10, 2016

@pavelgon28: That sounds like it's almost certainly a different problem. Please file a separate issue with all the relevant details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants