azure.storage.blob.baseblobservice. BaseBlobService .exists logs error if blob does not exist
See original GitHub issueWhich service(blob, file, queue) does this issue concern?
azure.storage.blob.baseblobservice.BaseBlobService.exists
What problem was encountered?
When checking if a blob exists in container with azure.storage.blob. baseblobservice.exists
, an error is logged when the blob does not exist in container. The expected behavior would be that no error is logged when the blob does not exist.
Have you found a mitigation/solution?
Hint:
azure.storage.blob.baseblobservice.BaseBlobService.get_blob_properties
sends a request via _perform_request
that raises an exception which is logged due to https://github.com/Azure/azure-storage-python/blob/master/azure-storage-common/azure/storage/common/storageclient.py#L348
Issue Analytics
- State:
- Created 6 years ago
- Comments:14 (7 by maintainers)
Top Results From Across the Web
Create blob container in azure storage if it does not exists
If the container already exists, then you will get a Conflict (409) error code. Based on this you can determine if the container...
Read more >azure.storage.blob.baseblobservice.BaseBlobService class
Returns a boolean indicating whether the container exists (if blob_name is None), or otherwise a boolean indicating whether the blob exists.
Read more >Azure Storage Blobs client library for Python - Microsoft Learn
Blob storage is ideal for: Serving images or documents directly to a browser; Storing files for distributed access; Streaming video and audio ...
Read more >Azure Blob Storage error codes - Microsoft Learn
Error code HTTP status code User message
BlobAlreadyExists Conflict (409) The specified blob already exists.
BlobNotFound Not Found (404) The specified blob does not exist.
ContainerAlreadyExists...
Read more >Troubleshoot client application errors in Azure Storage accounts
Users of your application may notify you of errors reported by the ... blob, container, or queue) does not exist in the storage...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
temporary fix that will disable all azure storage logging: do this in your python script
This issue appears to have resurfaced. Is anyone else getting this error again now when a blob does not exist? @zezha-msft, could the versions I have cause this? I thought this was solved in 1.3.0.