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

Azure Function调用PowerBI API时出现SSL连接异常求助

Azure Function调用PowerBI API时出现SSL连接异常求助

我现在遇到个棘手的问题,想请教下大家:我在Azure Function(用的是C# .NET 8 isolated模式,v4版本,部署在Linux计划)里通过SDK调用PowerBI API。本地开发的时候一切都正常,结果部署到Azure之后就触发了SSL错误,具体异常信息如下:

Exception: System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.

System.IO.IOException: Received an unexpected EOF or 0 bytes from the transport stream.

这个错误刚好发生在执行这行代码的时候:powerBiClient.Reports.GetReportInGroupAsync(workspaceId, reportId);

我的Function是部署在VNET里的,目前据我了解(权限有限),网络策略是允许所有出站流量的。

有没有朋友遇到过类似的情况?或者能给我一些排查问题的方向?我已经做了以下排查:

  • 从Function内部解析api.powerbi.com的DNS是正常的
  • 能在Kudu控制台ping通api.powerbi.com
  • 检查过证书相关的问题,但看起来异常在证书验证环节之前就已经抛出了...

备注:内容来源于stack exchange,提问作者Tim D'haeyer

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.04.17 09:00:27