Content-Length: 281501 | pFad | https://github.com/googleapis/python-storage/pull/609

A7 fix: check response code in batch.finish by cojenco · Pull Request #609 · googleapis/python-storage · GitHub
Skip to content

fix: check response code in batch.finish #609

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

Merged
merged 2 commits into from
Sep 30, 2021

Conversation

cojenco
Copy link
Contributor

@cojenco cojenco commented Sep 30, 2021

This adds a check to the top-level response code in batch.finish so that an exception is raised with the underlying error.

Fixes #608 Fixes #404 🦕

@product-auto-label product-auto-label bot added the api: storage Issues related to the googleapis/python-storage API. label Sep 30, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 30, 2021
@cojenco cojenco marked this pull request as ready for review September 30, 2021 18:22
@cojenco cojenco requested review from a team as code owners September 30, 2021 18:22
@cojenco cojenco merged commit 318a286 into googleapis:main Sep 30, 2021
cojenco added a commit to cojenco/python-storage that referenced this pull request Oct 13, 2021
* add top-level response status code check to batch.finish

* test exception is raised when batch request fails
cojenco added a commit to cojenco/python-storage that referenced this pull request Oct 13, 2021
* add top-level response status code check to batch.finish

* test exception is raised when batch request fails
@cojenco cojenco deleted the error-batch branch December 3, 2021 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the googleapis/python-storage API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Top-level response code error not checked in batch.finish Started getting random ValueError: Bad response: not multi-part exceptions
3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/googleapis/python-storage/pull/609

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy