Skip to content

Signature did not match in 12.30.0 #47475

@stefanbie1

Description

@stefanbie1
  • Package Name: azure-storage-blob
  • Package Version: 12.30.0
  • Operating System: Ubuntu
  • Python Version: 3.10.12

Describe the bug

I run this code:

from azure.storage.blob import BlobServiceClient
class Azure_blob_storage():

    def __init__(self, token) -> None:
        self.container = f"."
        self.blob_service_client = BlobServiceClient(
            account_url=token)

    def upload_file(self, source, target):
        blob_client = self.blob_service_client.get_blob_client(
            container=self.container, blob=target)
        try:
            with open(source, "rb") as data:
                blob_client.upload_blob(data)
        except Exception as err:
            print(f"File was not uploaded to blob storage\n{err.args}")

When I went from 12.29.0 to 12.30.0 I started to get this error when uploading a file:
'Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.\nRequestId:xxx\nTime:2026-06-11T11:18:05.9133423Z\nErrorCode:AuthenticationFailed\nauthenticationerrordetail:Signature did not match. String to sign used was \n\n\n/blob/rdswflogsprod/SPA3_INT/HPA_2/DOS_6_0/pre_flash\nread_write_2026-12-31\n\nhttps\n2023-08-03\nd\n\n\n\n\n\n\n',

Going back to 12.29.0 it works fine again

Do you know what could be the issue here?

Metadata

Metadata

Labels

Service AttentionWorkflow: This issue is responsible by Azure service team.StorageStorage Service (Queues, Blobs, Files)customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions