Skip to content
This repository was archived by the owner on Jan 18, 2025. It is now read-only.
This repository was archived by the owner on Jan 18, 2025. It is now read-only.

[Python 3] oauth exception (the JSON object must be str, not 'bytes') when using gcloud.storage #239

@changzhuo

Description

@changzhuo

In https://github.com/google/oauth2client/blob/0aad0a09f50312e0fcc3a1234f0e7fb525010bfd/oauth2client/gce.py#L86, the code uses d = json.loads(content) to load content as JSON. The code is broken in Python 3 because content is binary, while json.loads expects string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions