Azure / Azure/azure-sdk-for-python

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

Aperta
#39,845 9 commenti 1 reazione 2 assegnatari Rivendicata da @jalauzon-msft Vedi su GitHub
bug Client customer-reported needs-team-attention Service Attention Storage
Lingua principale
Python
Stelle
5.6k
Fork
3.4k
Merge medio
2g
PR unite (30g)
217

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.