I\'m trying to upload a image in Windows Azure Blob and I\'m geting the following error which I can\'t handle.
Server failed to authenticate the request.
I am using .NET SDK for Azure blob file uploading with metadata. I got an error while uploading files into Azure Blob storage with metadata, the error is "Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature." But these errors were only a few files not all of them.
Issue here If you have metadata for the file, metadata should not contain special characters(�) or additional space( ) starting of the value and end of the value.
If you correct the metadata values then the file will upload successfully.
My webapp didn't get access to Table Storage when running as an Azure App Service, even though the connectionstring was exactly the same as I used during development on my local machine.
To solve the problem, I added a system assigned identity to my Azure App Service and gave it Storage Account Contributor role on the Storage Account.
The application was .NET Core 3.1 using .NET library WindowsAzure.Storage version 9.3.2.
My PC's time was off by 1 hour as suggested by others in the comments. Correcting it solved the problem.
In my case I was passing storage connection string with access signature as an argument to console application. '%' in command line is an special character 'command line parameters'. '%' appears in access signature (SAS). You have to escape percent %, double it %%.
ERROR MESSAGE
Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
SOLUTION
I was facing the same issue in my application and i resovled it by generating a shared access signature (in azure portal) for key2 instead of key1. Changing the key fixed the error. (Settings > Shared access signature) Also keep in mind that the connection string should be updated as well - if used. (Settings > Access keys)
Check the timezone of your computer or mobile phone.