As shown in model serialization for ContentSettings, the required type for content_md5 is str as shown below:
But when uploading, content_md5 needs to be converted to
bytearray and the following code would cause a bug when converting a string to bytearray.
|
blob_content_md5=bytearray(content_settings.content_md5) if content_settings.content_md5 else None, |
blob_content_md5=bytearray(content_settings.content_md5) if content_settings.content_md5 else None,
TypeError: string argument without an encoding
This would cause error when uploading with content_md5. Please fix asap.
As shown in model serialization for ContentSettings, the required type for content_md5 is
stras shown below:azure-sdk-for-python/sdk/storage/azure-storage-blob/azure/storage/blob/_models.py
Line 621 in 00c9044
But when uploading, content_md5 needs to be converted to
bytearrayand the following code would cause a bug when converting a string to bytearray.azure-sdk-for-python/sdk/storage/azure-storage-blob/azure/storage/blob/_blob_client.py
Line 382 in 00c9044
This would cause error when uploading with content_md5. Please fix asap.