locked
Strange blob not found error RRS feed

  • Question

  • We have the blob file uploaded on to Azure storage, and this happens to be the WMV file. This is around 2/3 MB in size.

    We are having a strange issue of Blob not found error. See the response returned by fiddler below

     

    <?xml version="1.0" encoding="utf-8"?><Error><Code>BlobNotFound</Code><Message>The specified blob does not exist.
    RequestId:40e31ef9-1dad-4ff1-a557-8b66bab19ede
    Time:2011-07-18T17:56:36.9333869Z</Message></Error>

     

    Here is the code that uses windows media player object which refers to the blob file

     

    <object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" width="480" height="360" codebase="http://www.microsoft.com/Windows/MediaPlayer/">
    <param name="Filename" value="http://somename.blob.core.windows.net/containername//somelogicalfolder/008/008_1.wmv">
    <param name="AutoStart" value="true">
    <param name="ShowControls" value="true">
    <param name="BufferingTime" value="2">
    <param name="ShowStatusBar" value="true">
    <param name="AutoSize" value="true">
    <param name="InvokeURLs" value="false">
    <embed src="http://somename.blob.core.windows.net/containername//somelogicalfolder/008/008_1.wmv" type="application/x-mplayer2" autostart="1" enabled="1" showstatusbar="1" showdisplay="1" showcontrols="1" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,0,0" width="480" height="360"></embed>
    </object>

     

    When we try to run this HTML file in browser, fiddler shows the above error that blob not found!

    Well, then i added a hyper link with the same url and right clicked to do "Save Target As". Doing so I am able to download the WMV file and I am able to play it in Windows Media Player.

    We are really clueless as to what the issue is?

    We created another container and added another WMV file which is very small (500 KB) and that is being played very well in WM player object (as shwon in above html)

    Seeing the difference between the two.. I am not sure whats going on. Does it have to do anything with size? or the way windows media player handles the large files? or anything to do with how blob storage service works?

    Please also note that, when the file is being referenced from on-premise IIS server, where the application also is hosted, using a relative path, it works. Even when i have a local desktop HTML file and i point to the existing production content server to refer to this WMV file, thats also works fine. So why not blob storage?

    Any help in this regards will be really appreciated.

    Regards

    Badal

     

     


    Badal
    Monday, July 18, 2011 6:16 PM

Answers

  • The provided link is:

    http://somename.blob.core.windows.net/containername//somelogicalfolder/008/008_1.wmv

     

    This has a double / after the container name - which is probably not intended. i.e. does the blob name really start with a /?

    Monday, July 18, 2011 6:42 PM
    Answerer
  • Are you sure about that? The additional slash will definitely result in a 404 if the blob name doesn't actually include the leading slash.

    Also, none of the tools I've ever used to upload a blob have resulted in a blob URL with a double slash.

    Tuesday, July 19, 2011 3:25 AM
  • I confirm it. Its Windows Azure MMC. When I upload a container, i have to mention the name of the container and the folder that i need to upload. When it gets uploaded - all the blobs are prefixed with "/" and hence the "//"

    This caused us lot of pain in finding out why the videos were not playing (though it looks a simple issue :)), more so because other content types were getting downloaded without any issues.

    Regards


    Badal
    Tuesday, July 19, 2011 8:02 AM

All replies

  • The provided link is:

    http://somename.blob.core.windows.net/containername//somelogicalfolder/008/008_1.wmv

     

    This has a double / after the container name - which is probably not intended. i.e. does the blob name really start with a /?

    Monday, July 18, 2011 6:42 PM
    Answerer
  • Well, When you upload any blob using Azure blob storage exlorer/ Azure MMC any such.... it adds that addnl "/" by default. Thats not the issue.

     

    Regards

    Badal


    Badal
    Tuesday, July 19, 2011 2:11 AM
  • Are you sure about that? The additional slash will definitely result in a 404 if the blob name doesn't actually include the leading slash.

    Also, none of the tools I've ever used to upload a blob have resulted in a blob URL with a double slash.

    Tuesday, July 19, 2011 3:25 AM
  • Yes you are right Steve and Neil. "//" in the blob URL is the problem. I think when i uploaded a container through Azure MMC it added that "//" by default after the container name.

    I will confirm this once again though.

    Surprisingly i was able to refer other blob contents like pdf, docs and images with that "//" in place. Only videos were not played using Windows Media player object in the browser.

    Thanks for your help.

    Regards

    Badal


    Badal
    Tuesday, July 19, 2011 7:59 AM
  • I confirm it. Its Windows Azure MMC. When I upload a container, i have to mention the name of the container and the folder that i need to upload. When it gets uploaded - all the blobs are prefixed with "/" and hence the "//"

    This caused us lot of pain in finding out why the videos were not playing (though it looks a simple issue :)), more so because other content types were getting downloaded without any issues.

    Regards


    Badal
    Tuesday, July 19, 2011 8:02 AM