Skip to content

Except with error messages returned from the API #224

@txomon

Description

@txomon

Is your feature request related to a problem? Please describe.

Currently the implementation will raise an exception if the answer is not 200. https://github.com/googleapis/google-resumable-media-python/blob/master/google/resumable_media/_helpers.py#L70-L98

The current implementation is terrible for development / problem triaging in production systems because it shadows the real problem making no use of the error message explaining the issue.

Describe the solution you'd like

To show the messages the API return

Describe alternatives you've considered

Introspecting the stack to get the message out

Metadata

Metadata

Labels

api: storageIssues related to the googleapis/python-storage API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions