gpt4 book ai didi

azure - 访问 Azure Blob 存储时出现错误 400 错误请求 - 所有最新组件

转载 作者:行者123 更新时间:2023-12-02 06:50:44 24 4
gpt4 key购买 nike

我在访问 Azure Blob 存储时遇到了许多人发布的“400 错误请求”错误。大多数修复与 13 年末或 14 年以来的 Azure SDK 和存储模拟器的更新版本相关,但此后又发布了多个后续版本。

        CloudStorageAccount storageAccount = CloudStorageAccount.Parse("blabla");
CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient();
CloudBlobContainer container = blobClient.GetContainerReference("mycontainer");
CloudBlockBlob blockBlob = container.GetBlockBlobReference(id);
string x = blockBlob.DownloadText(); // <-- Problem happens here

我运行正常,然后发生了一些变化导致出现此错误。

  • 这似乎不是命名问题 - 我的存储容器全部是小写且 12 个字符
  • 这不是模拟器 - 我什至没有使用它

运行 Windows Azure 存储库的 Visual Studio 2013 Community Edition、Azure SDK 2.6 和 NuGet 包版本 4.3.0。 (我尝试过使用最新的 3.x 版本,但存在同样的问题。)

此外,为了确保我是干净的,我删除了所有版本的 Azure SDK 和本地工具,并重新安装了 Azure SDK 2.6。

最佳答案

关于azure - 访问 Azure Blob 存储时出现错误 400 错误请求 - 所有最新组件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30806791/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com