list_blobs() leading to ServiceRequestError and CERTIFICATE_VERIFY_FAILED
See original GitHub issue- Package Name: azure-storage-blob
- Package Version: 12.12.0
- Operating System: Ubuntu 20.04
- Python Version: 3.8.9
Describe the bug list_blobs() leads to azure.core.exceptions.ServiceRequestError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1125) on a completely fresh install on an Ubuntu 20.04 VM.
To Reproduce Run this code:
import os
from azure.storage.blob import ContainerClient
def try_list_blobs():
account_url = "https://mystorageaccount.blob.corewindows.net<SAS>"
container_name = "mycontainer"
cc = ContainerClient(account_url, container_name)
for blob in cc.list_blobs():
print(blob)
try_list_blobs()
Expected behavior No crash, printing listed blobs
Additional context This happened on 3 separate machines on completely clean python installs. We tried with both correct and incorrect values in account_url and they all yield the same result.
We tried using Shared Access Signatures (as above) and environment credentials.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Failing to upload larger blobs to Azure: azure.core.exceptions ...
I summarize the solution as below. If you want to upload file to Azure blob in chunk with package azure.storage.blob , we can...
Read more >azure.core.exceptions.ServiceRequestError class
An error occurred while attempt to make a request to the service. No request was sent. In this article. Constructor. Inheritance.
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
Thanks for the feedback @vholmer. I will forward this to the storage team.
Hi, we’re sending this friendly reminder because we haven’t heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don’t hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!