You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Unity C#开发HoloLens应用时Azure Blob Service失效问题及解决

HoloLens应用调用Azure Blob Storage出现状态码0错误的排查与解决

问题场景

在使用Unity和C#开发HoloLens应用时,将Azure Blob Storage作为文件存储数据库,此前一直借助StorageService包实现存储账户容器列表查询及文件加载功能,近期调试时突然触发以下警告:

Response error status:0 code:0 error:Response failed with status: 0 request url:https://<mystorageaccount>.blob.core.windows.net/?comp=list&restype=container
UnityEngine.Debug:LogWarning (object)
RESTClient.RestRequest:ParseXML<Azure.StorageServices.ContainerResults> (System.Action`1<RESTClient.IRestResponse`1<Azure.StorageServices.ContainerResults>>) (at C:/Users/.../RestRequest.cs:256)
Azure.StorageServices.BlobService/<ListContainers>d__2:MoveNext () (at C:/Users/.../BlobService.cs:31)
UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr)

该错误的状态码为0,无法通过常规Azure配置排查解决,且确认Azure访问密钥及所有相关设置数月未做改动。

解决方法

经排查,问题由两方面原因导致:

  • Mac上Parallels Desktop的网络连接异常:虚拟机网络链路中断或异常导致请求无法正常发送至Azure服务器,返回无意义的状态码0
  • 原StorageService库失效:原依赖的StorageService包已无法正常工作,更换为可用的库后恢复正常

内容的提问来源于stack exchange,提问作者dany98cava

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.20 13:25:22