Azure / Azure/azure-sdk-for-python
Resource warning: Sending a large body directly with raw bytes might lock the event loop
Open
bug
Client
customer-reported
needs-team-attention
Service Attention
Storage
- Dominant language
- Python
- Stars
- 5.6k
- Forks
- 3.4k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 193
Description
The Python SDK for BlobStorage throws the following warning: "Resource warning: Sending a large body directly with raw bytes might lock the event loop"
I am using the latest version of Python and the latest version of the blob storage sdk.
** Steps to reproduce**
async with BlobServiceClient(account_url=accountUrl, credential=accountKey) as service:
async with service.get_blob_client(container, blobName) as client:
await client.upload_blob(BytesIO(data), overwrite=True)
**Expected behavior**
I expect to run the code without any warning.
Contributor guide
Assessment
This issue has not been assessed yet.