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

Client.from_service_account_json raises a TypeError #1771

Closed
Morreski opened this issue May 3, 2016 · 3 comments
Closed

Client.from_service_account_json raises a TypeError #1771

Morreski opened this issue May 3, 2016 · 3 comments
Assignees
Labels

Comments

@Morreski
Copy link

Morreski commented May 3, 2016

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.

@dhermes dhermes added the auth label May 3, 2016
@dhermes
Copy link
Contributor

dhermes commented May 3, 2016

@Morreski Can you provide a snippet of gcloud-python that uses a null value for scopes?

@Morreski
Copy link
Author

Morreski commented May 3, 2016

Well NVM this ticket this was a fail, just spotted i had an error in my imports, that made me instantiate the base client class instead of pubsub client class...

@dhermes
Copy link
Contributor

dhermes commented May 3, 2016

Good deal! Thanks for taking the time to report it!

@dhermes dhermes closed this as completed May 3, 2016
parthea pushed a commit that referenced this issue Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants