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.

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:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
l0lawrencecommented, Jul 5, 2022

Thanks for the feedback @vholmer. I will forward this to the storage team.

0reactions
msftbot[bot]commented, Jul 19, 2022

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!

Read more comments on GitHub >

github_iconTop 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 >

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