Skip to content
This repository was archived by the owner on May 6, 2026. It is now read-only.
This repository was archived by the owner on May 6, 2026. It is now read-only.

Python 3.x (x < 6): 'get_body(response)' returns bytes to 'json.loads()' #12

Closed

Activity

  1. dhermes commented on Jul 13, 2017

    @dhermes
    Contributor

    I should probably just evict this json.loads() code all together:

    json_response = json.loads(self._get_body(response))
    self._bytes_uploaded = int(json_response[u'size'])

    I had thought it was "universal" that all APIs return size but IIRC even the BigQuery API does not (so this code block would need to change before #3555 can be successfully merged).

  2. self-assigned this
    on Jul 13, 2017
  3. added 2 commits that reference this issue on Jul 18, 2017
    7f512de
    5e32675
  4. added a commit that references this issue on Jul 18, 2017
    aff1642
  5. added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    and removed on Jan 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.upload

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions