How to fix Unexpected return type <class 'str'> from ContentDecodePolicy.deserialize_from_http_generics. this error

Nandini T 0 Reputation points
2024-03-13T14:49:27.4433333+00:00

Hi team, when I use AzureBlobStorageToGCSOperator for transferring files from Azure Blob storage to GCP bucket getting below error in Airflow. Could and please help. Unexpected return type <class 'str'> from ContentDecodePolicy.deserialize_from_http_generics.

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,404 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anand Prakash Yadav 5,125 Reputation points Microsoft Vendor
    2024-03-18T11:25:51.9+00:00

    Hello Nandini T, thank you for posting your query here!

    Firstly, apologies for the delay in response.

    The error you’re encountering seems to be related to the ContentDecodePolicy.deserialize_from_http_generics method in the Azure SDK for Python. This method is used to deserialize HTTP responses, and it’s expecting a certain type of return value. If it encounters a string (str) when it’s expecting another type, it could throw the error you’re seeing.

    However, since the issue is related to SDK for Python, I would recommend posting your question here Issues · Azure/azure-sdk-for-python · GitHub to receive a focused and immediate assistance from the right set of experts.

    This repository is for active development of the Azure SDK for Python. For consumers of the SDK, we recommend visiting our public developer docs or our versioned developer docs.

    ---------------------------------------------------------------------------------------------------------- Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments