Issue in calling Blob API using Shared Key Authorization using Javascript

Copper Contributor

The above sample is a CSharp sample to create Authorization Header to call the Azure Storage Blob API for getting the blobs.

The same is replicated using the Javascript.

Everything works but when I perform multiple get calls to retrieve multiple blobs inside a for loop. I get an error for few of the blobs due to which few calls fails. Plus this behaviour is not consistent. Sometimes I would get all the blobs without any error. Sometimes none. And sometimes few blobs are successfully fetched and few are not.

Error I get on calling GET Blob API : 


"403 (Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.)"


Is there any sample available for the same in Javascript ?

What could be the possible reasons for this failure. ?

0 Replies