-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Blob client download_blob api is broken with AsyncioRequestsTransport #40217
Comments
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jalauzon-msft @vincenttran-msft. |
Hello @vpanghal. I'm an AI assistant for the azure-sdk-for-python repository. I have some suggestions that you can try out while the team gets back to you.
The team will get back to you shortly, hopefully this helps in the meantime. |
Hi @vpanghal, thanks for the inquiry. Could you provide us with a code sample to reproduce your exact issue? Thanks! |
Hi @vpanghal. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue. |
This is the script that you can use to reproduce the issue. It works with 12.23.1 but fails with 12.24.1
|
Hi @vpanghal, thanks for providing the sample code! I was able to reproduce the issues you're experiencing. The error appears to be the The immediate workaround will be to try removing the In the meantime, our team will discuss how to best resolve your issue and get back to you on any changes we'll make. Thanks! |
Hi @vpanghal, for a bit more context here, before version 12.23.X the Storage SDK did not support We are investigating a way to handle the differences in APIs gracefully so we can support all types of transports, and we hope to include that in our next release or two. As is, however, we do not currently support |
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:
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
The text was updated successfully, but these errors were encountered: