So we're building a web based audio streaming platform where the audio files are stored in blob storage. We're creating an SAS URL to the blob and then feed that into the javascript player (aurora).
This is working fine for the most part, however when I switch tracks a lot, at a certain point I start getting 403 responses to the HEAD request of the file.
If I click on RESEND in firebug, which simply resends the exact same request, then sometimes I still get the same 403 error, but after a while the request will succeed again, which means that the URL is formed correctly.
Below is the full response I'm getting
403 Server failed to authenticate the request. Make sure the value of
Authorization header is formed correctly including the signature.
Transfer-Encoding: chunked Server: Microsoft-HTTPAPI/2.0
x-ms-request-id: <removed>
access-control-expose-headers:
Content-Type,Accept-Ranges,Content-Encoding,Content-Length,Content-Range
Access-Control-Allow-Origin: * Date: Fri, 12 Aug 2016 06:31:58 GMT
I'm starting to think that some kind of restriction on blob storage is triggered, such as a maximum amount of connections or a bandwidth limitation, possibly even a DOS defensive machanism. Does anyone have any suggestions?
I've read some articles about diagnostics in storage, but they all refer to the old Azure portal. My storage account is only visible in the new portal. So my subquestion would be: can anyone direct me to a way to diagnose why the requests are being denied, using the new Azure portal?
Edit: I've used Azure Management Studio to take a look at the logs of the storage account. I found this logline in there that specifies a 'SASNetworkError':
1.0;2016-08-12T10:26:27.7337647Z;GetBlob;SASNetworkError;206;19002;6;sas;;[xxx];blob;"https://[xxx].blob.core.windows.net:443/files/[xxx].flac?sv=2015-04-05&sr=b&si=flacpolicy636065943797947863&sig=XXXXX&sip=[xxx]";"/[xxx]/files/[xxx].flac";8f7d48a3-0001-0017-5983-f499a7000000;0;[xxx]:40690;2015-04-05;637;0;499;0;0;;;""0x8D35C8CDDD72689"";Monday, 04-Apr-16 13:27:27 GMT;;"Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0";"http://[xxx].azurewebsites.net/";
It looks like this is the cause of the error, but I can't figure out what it is that's failing.