Skip to content

The specified blob does not exist

Robert Greiner
Robert Greiner
1 min read
Microsoft.WindowsAzure.StorageClient.StorageClientException: The specified blob does not exist.

There are two different scenarios that will throw this exception when trying to call CloudBlob.DownloadText(). The first, and least interesting, is that the blob reference you are holding on to actually doesn't exist. This is simple enough to check and you probably wouldn't have made it this far in your searching had that been the original problem. I digress.

The second scenario that results in the above error is that you are behind a firewall that blocks outgoing requests to Azure Blob Storage. You can confirm this by running the same code on a different network (I just connected my laptop to my phone's hotspot) and see if everything magically starts working.

The easiest way around this issue is to make sure the baseAddress property in the CloudBlobClient object starts with https. You should be doing this anyway.

new CloudBlobClient("https://account.blob.core.windows.net/", credentials);

If this still doesn't work, you will have to punch open port 443 on your firewall or resort to the Get Blob REST API method.

Please consider subscribing, it's free.
Technology

Robert Greiner Twitter

Professional optimist. I write a weekly newsletter for humans at the intersection of business, technology, leadership, and career growth.


Related Posts

Members Public

AI Rule #1 - Customer First

In 1985, Warren Buffett wisely said, "The first rule of investment is don't lose. And the second rule of investment is don't forget the first rule, and that's all the rules there are." Similarly, the first rule of AI investment is to

AI Rule #1 - Customer First
Members Public

Navigating the Upside Down as a Technology Leader

Ideas for leading technology organizations with confidence and creativity.

Navigating the Upside Down as a Technology Leader
Members Public

Artist for a Day

The future of creative output is multiplied by AI.

Artist for a Day