BlobClient.upload_blob hangs and crashes (2 in 1) #11457
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Service Attention
This issue is responsible by Azure service team.
Storage
Storage Service (Queues, Blobs, Files)
Milestone
Describe the bug
BlobClient.upload_blob
hangs for 1.5 minutes if a metadata value contains a leading space. Then it crashes with a deep Python stack trace andServiceRequestError
exception.It crashes much faster when a metadata value ends with a space though! Which could be a good thing if it wasn't
ClientAuthenticationError
exception.To Reproduce
Steps to reproduce the behavior:
This fails after 1.5 minutes with
ServiceRequestError
whenconf = " boo"
, and it fails withClientAuthenticationError
whenconf = "boo "
Expected behavior
Metadata is validated before actually making a call, a meaningful validation exception is raised.
The text was updated successfully, but these errors were encountered: