Open ibombonato opened 1 year ago
can report the same issue using Python 3.9.15
env: requirements.txt
Thanks! I can reproduce with:
from prefect import flow
from prefect_azure import AzureBlobStorageCredentials
from prefect_azure.blob_storage import blob_storage_list, blob_storage_upload
@flow
def example_blob_storage_list_flow():
blob_storage_credentials = AzureBlobStorageCredentials.load("azure-connection-string")
container = "test-container"
blob_storage_upload(
b"some-data",
container=container,
blob_storage_credentials=blob_storage_credentials,
blob="test-data"
)
data = blob_storage_list(
container=container,
blob_storage_credentials=blob_storage_credentials,
)
return data
example_blob_storage_list_flow()
I am receiving what seems a pydantic validation error when trying to list blob from storage.
If I use
list_blobs
, from oficial Azure Storage package, it works. The problem happens when I use the prefect azure package.Steps to reproduce:
Python 3.8.10
start a docker container with Azurite to simulate an Azure Blob Storage. Fwiw, the problem happens in a real Azure Storage to.
docker run --name azurite -d -p 10000:10000 -v blob_storage:/var/lib/azure-blob/data mcr.microsoft.com/azure-storage/azurite azurite-blob --blobHost 0.0.0.0 --loose
The flow bellow will connect to Azurite, create a container, put some files on it, list it and after all, delete the container.
Error:
requirements.txt
pip freeze: