Skip to content

Blob client download_blob api is broken with AsyncioRequestsTransport #40217

Open
@vpanghal

Description

@vpanghal
  • Package Name: azure-storage-blob
  • Package Version: 12.24.1
  • Operating System: All
  • Python Version: 3.11

Describe the bug
download_blob API is failing with AttributeError: 'RestAsyncioRequestsTransportResponse' object has no attribute 'load_body'

/home/cohesity/.cache/pypoetry/virtualenvs/xxxx-6dGAiALT-py3.11/lib/python3.11/site-packages/azure/core/tracing/decorator_async.py:114: in wrapper_use_tracer return await func(*args, **kwargs) /home/cohesity/.cache/pypoetry/virtualenvsxxxx-6dGAiALT-py3.11/lib/python3.11/site-packages/azure/storage/blob/aio/_blob_client_async.py:746: in download_blob await downloader._setup() # pylint: disable=protected-access /home/cohesity/.cache/pypoetry/virtualenvs/xxxx-6dGAiALT-py3.11/lib/python3.11/site-packages/azure/storage/blob/aio/_download_async.py:328: in _setup self._response = await self._initial_request() /home/cohesity/.cache/pypoetry/virtualenvs/xxxxx-6dGAiALT-py3.11/lib/python3.11/site-packages/azure/storage/blob/aio/_download_async.py:416: in _initial_request self._current_content = await process_content( /home/cohesity/.cache/pypoetry/virtualenvs/xxxxxx-6dGAiALT-py3.11/lib/python3.11/site-packages/azure/storage/blob/aio/_download_async.py:49: in process_content await data.response.load_body() /home/cohesity/.cache/pypoetry/virtualenvs/xxxxxx-6dGAiALT-py3.11/lib/python3.11/site-packages/azure/core/rest/_http_response_impl_async.py:44: in __getattr__ return super().__getattr__(attr)

To Reproduce
Steps to reproduce the behavior:

  1. Invoke donwload_blob API with AsyncioRequestsTransport

Expected behavior
download_blob API should succeed

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
This succeeds with 12.23.1 but fails with 12.24.x release

Metadata

Metadata

Labels

ClientThis issue points to a problem in the data-plane of the library.Service AttentionWorkflow: This issue is responsible by Azure service team.StorageStorage Service (Queues, Blobs, Files)customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions