FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Client.from_service_account_json raises a TypeError · Issue #1771 · googleapis/google-cloud-python · GitHub

Client.from_service_account_json raises a TypeError #1771

Description

When executing:

client = Client.from_service_account_json('./key.json')

A TypeError is raised from oauth2client because the method create_scoped from oauth2client.service_account.ServiceAccountCredentials is called with scopes=None although this parameter expects an iterable.

Maybe the SCOPE variable in connection.py (line 69) should be an empty set instead of a None object ? I don't know what would be the side effects of such a change.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


Back | FazBrowse Home | New Git URL