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

Turn REST response exceptions into GoogleAPICallError #769

Closed

Description

@busunkim96

Currently the REST transport uses response.raise_for_status() and returns the exception object from requests.

For consistency with existing libraries the response should be converted into a GoogleAPICallError.

https://github.com/googleapis/python-api-core/blob/db48ea3f8f69cd5039cdc2e35a0a3604d731bc70/google/api_core/exceptions.py#L399

Activity

  1. yon-mg commented on Feb 5, 2021

    @yon-mg
    Contributor

    Addressed in upcoming pr.

  2. added
    type: cleanupAn internal cleanup or hygiene concern.
    and removed
    triage meI really want to be triaged.
    on Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type: cleanupAn internal cleanup or hygiene concern.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions