Azure / Azure/azure-sdk-for-python

Resource warning: Sending a large body directly with raw bytes might lock the event loop

Open
#39,845 9 comments 1 reaction 2 assignees Claimed by @jalauzon-msft View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.