Batch requests generating multiple response codes for each request #1112
Labels
api: storage
Issues related to the googleapis/python-storage API.
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: question
Request for information or clarification. Not an issue.
Batch requests (using Batch._responses to access the response data) are returning multiple responses for each request. 4/request for copy requests, 2/request for deletes. Not sure if other methods are affected.
When raise_exception=False, this results in exceptions not being associated with the right request, or not being registered at all.
Refer to example here.
Basically, the first line of text in the quote block is printing length of requests and then length of responses. The next five lines are printing every response code associated with a particular item (four for each). The final five lines show the results as read by our implementation, notably missing the 404s thrown by the fourth item.
Obviously, we can fix our particular implementation to account for this, but thought y'all might want to know that something seems to be up with the batch responses, especially as this line seems to indicate an expectation that each request only have one response.
The text was updated successfully, but these errors were encountered: