Closed mawah closed 5 years ago
Hi @mawah, thanks for reaching out!
From the stack trace, it seems to me that your account_name might be the problem, could you please verify whether it is indeed a str?
I also noticed that you are using a very old version of the SDK. If you don't mind, could you please upgrade to the latest version(azure-storage-blob)? Note that the library was split into separate services, please refer to this section of the README.
I checked what the init method for the _ServiceParameters class in connection.py was receiving: by the time it arrives there, the account name is a single-element tuple, ('myaccountname', )
. I find that odd given that I've provided a simple string to the BlockBlobService constructor as shown above; haven't figured out where the issue is introduced. I'm using Python 3.6.5, if it makes a difference.
As a workaround, I manually edited the _ServiceParameters class's init method to store the tuple's first value in the account_name
attribute. This seems to have gotten me past that problem. I'm now checking into an apparently separate issue: my storage account is in the government cloud, and I think the connection strings need to be constructed a little bit differently than in commercial.
Also just tried switching to azure-storage-blob, and this fixed the problem with the tuple vs. string error as well. Sorry, didn't realize that the pip package name had changed!
Which service(blob, file, queue) does this issue concern?
Blob.
Which version of the SDK was used? Please provide the output of
pip freeze
.What problem was encountered?
Creation of a BlockBlobService using my storage account name and credentials returned without error:
However, when I attempt to create a blob, I get the following error:
The connection seems to be retried indefinitely, and I was forced to stop execution manually, leading to the following exception:
Have you found a mitigation/solution?
Not yet. My Microsoft alias is mawah if you'd like to reach out for debugging.
Note: for table service, please post the issue here instead: https://github.com/Azure/azure-cosmosdb-python.