-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
azure.storage.blob.ContainerClient() initializer does not support emulated blob storage from Azurite #12568
Comments
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @xgithubtriage. |
cc: @jongio |
Hi @chrisyeh96
|
The package has been released, you can install azure-storage-blob==12.4.0 to use the package with the problem fixed. |
Thank you @xiafu-msft! Finally got around to updating to the latest version of azure-storage-blob (12.5.0), and I can confirm that this issue has been fixed. |
Hi there, I was trying to use Docker to run my application which involves interaction with Azure blob storage. However, when I used Azurite to test it locally, I assigned the container_name: ContainerClient(
account_url="http://host.docker.internal:10000/devstoreaccount1",
container_name="container_name",
credential="Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw=="
)
Then I took a look at the commit @xiafu-msft mentioned above, it seems that the logic to determine if the user is using Azurite is by |
@xiafu-msft How do we use Azurite in case we cannot expose Azurite using localhost or 127.0.0.1? |
Hi @varun-shahdadpuri it might be better to ask that question here |
Describe the bug
azure.storage.blob.ContainerClient()
throws errors on emulated local blob storage.To Reproduce
Steps to reproduce the behavior:
Running Code in Python REPL:
Expected behavior
There should not be any error. Both Azurite and the Azure storage emulator assume the
'http://127.0.0.1:1000/devstoreaccount1'
account URL, but it seems like the Azure Python SDK sadly does not support this.The text was updated successfully, but these errors were encountered: