question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ContainerClient.delete_blobs() fails with TLS version not matched

See original GitHub issue
  • Package Name: azure-storage-blob
  • Package Version: 12.4.0
  • Operating System: Does not matter
  • Python Version: 3.6.11

Describe the bug When invoking container.delete_blobs(‘path/to/blob’) the code throws PartialBatchErrorException with “The TLS version of the connection is not permitted on this storage account.”.

The methods container.download_blob('path/to/blob') and container.delete_blob('path/to/blob') are successful.

To Reproduce Steps to reproduce the behavior:

credential = ClientSecretCredential(.....)
blob_client = BlobServiceClient(account_url=account_url, credential=credential)
container = blob_client.get_container_client('some_container_name')

container.delete_blobs('path/to/blob1', 'path/to/blob2')

Expected behavior To delete the blobs.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context The storage account is set to minimum TLS version 1.0.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
tasherif-msftcommented, Oct 6, 2020

Hi @foobarna we will now close this issue. Let us know if anything else comes up. Thank you.

1reaction
foobarnacommented, Sep 15, 2020

I can confirm that the .detele_blobs() method now works with no modification on the code/library version nor Azure Blob Storage account.

Read more comments on GitHub >

github_iconTop Results From Across the Web

azure.storage.blob.ContainerClient class | Microsoft Learn
Returns a generator to list the blobs under the specified container whose tags match the given search expression. The generator will lazily follow...
Read more >
Blobserviceclient' Object Has No Attribute 'Ls_Files' - ADocLib
ContainerClient.delete_blobs() fails with TLS version not matched. Package Name: azure-storage-blob; Package Version: 12.4.0; Operating. from azure.storage.blob ...
Read more >
Azure Storage PDF - Scribd
If the files created are no longer needed, you use the deleteBlob() method to delete the files. // Delete blob. echo "Deleting Blob"....
Read more >
下載 Patch 檔 - Gitea
azure-storage-blob-go/azblob/version.go | 2 +- . ... means the given customer specified encryption does not match the encryption used to encrypt the blob.
Read more >
internal, vendor: update Azure blobstore API
No known key found for this signature in database ... BlobItem) error { ... vendor/github.com/Azure/azure-pipeline-go/pipeline/version.go generated vendored.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found