{"action":"closed","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/768","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/768/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/768/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/768/events","html_url":"https://github.com/GoogleCloudPlatform/gcloud-node/issues/768","id":98297817,"number":768,"title":"Consider providing a warning for an invalid keyfile","user":{"login":"robertdimarco","id":136118,"avatar_url":"https://avatars.githubusercontent.com/u/136118?v=3","gravatar_id":"","url":"https://api.github.com/users/robertdimarco","html_url":"https://github.com/robertdimarco","followers_url":"https://api.github.com/users/robertdimarco/followers","following_url":"https://api.github.com/users/robertdimarco/following{/other_user}","gists_url":"https://api.github.com/users/robertdimarco/gists{/gist_id}","starred_url":"https://api.github.com/users/robertdimarco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertdimarco/subscriptions","organizations_url":"https://api.github.com/users/robertdimarco/orgs","repos_url":"https://api.github.com/users/robertdimarco/repos","events_url":"https://api.github.com/users/robertdimarco/events{/privacy}","received_events_url":"https://api.github.com/users/robertdimarco/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-31T01:35:08Z","updated_at":"2015-09-18T16:32:17Z","closed_at":"2015-09-18T16:32:17Z","body":"When creating a keyfile for a service account according to [GoogleCloudPlatform/gcloud-node#elsewhere](https://github.com/GoogleCloudPlatform/gcloud-node#elsewhere), it seems that the `client_email` and `client_id` fields are sometimes empty, even though (I think) they are both required to be the email address of the service account. Trying to use that credential with this module and Cloud Datastore or Cloud Storage will return an 'Invalid Grant' error when making requests.\r\n\r\nThis is just a suggestion (feel free to close-out as wont-fix) but it might be worth adding a warning from this module when those fields are missing / empty strings."}}