"request inputs is out of range" when using AWS pre-signed S3 url with REST API

Hi there,

We are trying to generate Document via generate REST API from docx. We understand we can use FileUrl, and it is working with a relative short link.

However, when we are trying to use AWS pre-signed S3 url, the response is

One of the request inputs is out of range.
RequestId:e5c2bc51-b01e-0057-48e8-0afb3a000000
Time:2023-10-30T04:19:49.3671350Z
Status: 400 (One of the request inputs is out of range.)
ErrorCode: OutOfRangeInput

Content:
<?xml version="1.0" encoding="utf-8"?><Error><Code>OutOfRangeInput</Code><Message>One of the request inputs is out of range.
RequestId:e5c2bc51-b01e-0057-48e8-0afb3a000000
Time:2023-10-30T04:19:49.3671350Z</Message></Error>

Headers:
Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-id: e5c2bc51-b01e-0057-48e8-0afb3a000000
x-ms-client-request-id: ff3550be-ac8f-40bc-b2af-65cb6ffee849
x-ms-version: 2023-01-03
x-ms-error-code: OutOfRangeInput
Date: Mon, 30 Oct 2023 04:19:48 GMT
Content-Length: 226
Content-Type: application/xml

So is it because the pre-signed url is too long? or due to the formatting of the url?

Thanks

Hello @ardenyang,

I'll check with our developers if there are any issues using the AWS pre-signed S3 url and reply later.

Best regards,
Petr
Plumsail team

Hello @ardenyang,

This error happend due to the limitation of the length of the blob object name - 1024. We'll probably add some extra checking for the length of the links to get it working. For now, please use links no longer than the blob object name length.

Best regards,
Petr
Plumsail team

Hi @Petr ,

Thanks for the information. All good for me.

1 Like