I was recently trying to copy some files from Azure using an SAS token. It was failing with the following error;
The remote server returned an error: (403) Forbidden.
Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
When run manually in the command line — it’d work.
Turns out it was purely because it was running with a batch file, the % signs (common in the SAS Signature) don’t play nice with batch files.
Changing the % in the signature to %% escaped them, and let it run normally.
Hoping this saves someone else 1 hour ;)
You definitely saved my hour. Thank you so much!
Same weird error, two hours wasted.. :( Now it’s work correctly… Thanks !!!
Thank you, thank you, thank you. I was stumped for over an hour and this worked!!!
Thanks for the assist – hours wasted here until I found this post.
Nice, you saved me of messing up!
Thanks so much! I was trying to automate a task and had a dozen hurdles to overcome. This was the last hurdle I couldn’t get over. Thank you so much for sharing!!!
Man, you are a legend!!!!
How did you ever solve this in the first place???
Ditto on Legend – this was driving me nuts until I found this – thank you!!!
Eyy Lmao, this saved my balls
it works well ,thank you !!!!
U R DA MAN!!!! Thank you!!!
Thanks to you, lost 1-2 hours before your solution ^^
many hours saved, thanks you!
You genius, thanks for confirming I’m not going mad!
Awesome! This was killing me, spent hours trying to figure this out!
Thank you so much
You saved my week.