Skip to content

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

Open
@curia-damiano

Description

@curia-damiano

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.

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)bugThis issue requires a change to an existing behavior in the product in order to be resolved.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 team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions