Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

[Feature] Multipart upload more descriptive error message for uploading one part #238

@mrgcohen

Description

@mrgcohen

Love this library... great work!

Minor issue, but when submitting a part in a multipart upload the error is not very descriptive when using 0 as PartNumber. It took me a while to figure out that I was indexing with 0 instead of 1 PartNumber.

To Reproduce

  1. Create a multipart upload
  2. Submit a part with PartNumber 0

Result

This will succeed. It should give an error saying you can't upload a part with a PartNumber of 0.

Sample response from S3

Here's the response I get from S3.

<?xml version="1.0" encoding="UTF-8"?>
<Error>
    <Code>InvalidArgument</Code>
    <Message>Part number must be an integer between 1 and 10000, inclusive</Message>
    <ArgumentName>partNumber</ArgumentName>
    <ArgumentValue>0</ArgumentValue>
    <RequestId>[RequestIdHere]</RequestId>
    <HostId>[HostIdHere]</HostId>
</Error>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions