I am sometimes unable to download from an Azure blob storage when debugging locally. I have a static file that I uploaded and then download it during testing. I can download it many times successfully, but sometimes when I call DownloadToFile, it blocks for a while, creates a 0kb file with the correct name, then throws an exception saying "Server encountered an internal error. Please try again after some time".
After this, I cannot download again unless I delete and upload the file again. No code changes occur during this time.
The inner exception is a 500 error with an HResult of -2146233088.