逻辑应用程序将大文件上传到 Blob 失败,无法向缓冲区写入更多字节

问题描述 投票:0回答:1

您好,有一个从 API 下载文档的 HTTP 请求。这适用于小于默认 105 MB 的文档,但显然会遇到较大文档的障碍。它被设置为分块,但看起来尽管如此设置,105 MB 仍然是硬编码的?

我已经设置了环境变量:enter image description here

但这似乎并没有带来什么不同。我仍然收到错误请求错误。 enter image description here

有人成功解决了这个问题吗?

azure-logic-apps
1个回答
0
投票

不应更新环境变量,而应更新

hosts.json
文件。

按照以下步骤操作:https://learn.microsoft.com/en-us/azure/logic-apps/edit-app-settings-host-settings?tabs=azure-portal#azure-portal---hostjson

在我的测试中,我最初也遇到了这个错误:

Error

当我将

Runtime.Backend.HttpOperation.MaxContentSize
设置添加到
hosts.json
文件时,如下 –

{
  "version": "2.0",
  "extensionBundle": {
    "id": "Microsoft.Azure.Functions.ExtensionBundle.Workflows",
    "version": "[1.*, 2.0.0)"
  },
   "extensions": {
      "workflow": {
         "settings": {
            "Runtime.Backend.HttpOperation.MaxContentSize": "314572800"
         }
      }
   }
}

– 错误消失了:

Success

动作输出:

Action outputs

© www.soinside.com 2019 - 2024. All rights reserved.