Azure Storage: 403 Server failed to authenticate the request

后端 未结 2 1346
说谎
说谎 2020-12-17 19:53

I\'ve search here and in Google but I can\'t find a solution.

With my C# code I want to read a file from Azure Storage Blob. The code (only 6 line) works very well i

相关标签:
2条回答
  • 2020-12-17 20:27

    I've had a similar issue (in Java) trying to access blobs from local machine. Trying to download a blob would work one out of two times, trying to get an InputStream never worked. In both cases the error was the same as yours.

    My code always worked from a VM in the cloud. The issue was fixed when I've changed the default protocol from HTTP to HTTPS. When constructing your CloudStorageAccount, there is a constructor that allows you to specify the default protocol. It's also available for C# (here)

    Also for the record, AZCopy will fail for a source with HTTP, with similar error. You might give it a try.

    0 讨论(0)
  • 2020-12-17 20:34

    This was also reported on our GitHub page here: https://github.com/Azure/azure-storage-net/issues/171

    Our leading theory is that a caching proxy might be in between the client and the server affecting your requests.

    We're still investigating and will let you know.

    0 讨论(0)
提交回复
热议问题