Azure Blob 存储从 Salesforce Apex 的 URL 中放置 Blob:错误:OutOfRangeInput

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

我正在尝试将超过 12MB 的 Blob 从 Salesforce 放入 Azure Blob 存储中。

我正在使用来自 URL 的 Put Blob:https://learn.microsoft.com/en-us/rest/api/storageservices/put-blob-from-url,我可以使用公共图像,但无法获取它与销售人员“公开”链接到内容文档一起使用。

我已经尝试了内容分发中的 DistributionPublicUrl 和 contentdownloadurl,但我从 azure 收到了超出范围的错误。

如有任何帮助或建议,我们将不胜感激。

当前使用 PUT Blob:https://learn.microsoft.com/en-us/rest/api/storageservices/put-blob 从远程服务器绕过顶点限制不是一个选项。

我收到以下错误,

<?xml version="1.0" encoding="utf-8"?>
<Error>
    <Code>OutOfRangeInput</Code>
    <Message>One of the request inputs is out of range.
RequestId:749fb49e-101e-001b-6247-a2d651000000
Time:2024-05-09T19:29:08.9534310Z</Message>
</Error>
salesforce azure-blob-storage
1个回答
0
投票

< Error>

OutOfRangeInput
请求输入之一超出范围。请求ID:749fb49e-101e-001b-6247-a2d651000000 时间:2024-05-09T19:29:08.9534310Z

最初,当我尝试使用相同的公共 salesforce URL 时,也遇到了相同的错误。

enter image description here

该错误可能是 Salesforce URL 的问题(如特殊字符)。或者,我尝试使用不同的公共 URL (23 Mb),效果非常好。

要求:

PUT https://venkat123.blob.core.windows.net/test/sample.bmp?sv=2022-11-02&ss=bfqt&srt=co&sp=rwdlacupiytfx&se=2024-05-10T11:47:18Z&st=2024-05-10T03:47:18Z&spr=https&sig=wqUJf8xxxx
Headers: 
x-ms-blob-type: Blockblob
x-ms-copy-source: <my public url>
x-ms-version: 2023-11-03

输出: enter image description here

传送门: enter image description here

参考: 这里,您可以参考以下有类似错误的链接:

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