This repository was archived by the owner on Apr 8, 2025. It is now read-only.
This repository was archived by the owner on Apr 8, 2025. It is now read-only.
connection string works in Azure Storage Explorer, but fails on some machines with azure-storage-cpp #243
Open
Description
I have a C++ client application which connects to Azure Storage.
This is what I have in the Client class constructor:
Client::Client() {
...
storage_connection_string = U("...the connection string...");
storage_account = azure::storage::cloud_storage_account::parse(storage_connection_string);
blob_client = storage_account.create_cloud_blob_client();
container = blob_client.get_container_reference(U("generalstorage"));
}
On my machines (Ubuntu 16, macOS) it works fine.
On some other machines (Ubuntu 16, Ubuntu 18) it fails with an azure::storage::storage_exception
:
Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
It seems it is not a problem of clock.
Also, on the machine where creating the client fails, the same connection string works in Microsoft Azure Storage Explorer.