-
Notifications
You must be signed in to change notification settings - Fork 634
Closed
Labels
bugThis issue is a bug.This issue is a bug.p2This is a standard priority issueThis is a standard priority issueresponse-requestedWaiting on additional info and feedback. Will move to \"closing-soon\" in 7 days.Waiting on additional info and feedback. Will move to \"closing-soon\" in 7 days.
Description
Checkboxes for prior research
- I've gone through Developer Guide and API reference
- I've checked AWS Forums and StackOverflow.
- I've searched for previous similar issues and didn't find any solution.
Describe the bug
Uploading large files to S3 fails. This starts to happen at some point after 5 MB.
Regression Issue
- Select this option if this issue appears to be a regression.
SDK version number
@aws-sdk/[email protected]
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
v22.12.0
Reproduction Steps
Run the following code:
import { S3Client } from "@aws-sdk/client-s3";
import { Upload } from "@aws-sdk/lib-storage";
import { createReadStream } from "node:fs";
import { writeFile } from "node:fs/promises";
import { join } from "node:path";
async function main() {
const s3Client = new S3Client({
region: ...,
credentials: {
accessKeyId: ...,
secretAccessKey: ...,
},
});
// const largeContent = "a".repeat(1000 * 1000); // β
// const largeContent = "a".repeat(5 * 1000 * 1000); // β
const largeContent = "a".repeat(9 * 1000 * 1000); // π₯
const key = "large-file.txt";
const filePath = join(__dirname, key);
await writeFile(filePath, largeContent);
await new Upload({
client: s3Client,
params: {
Bucket: ...,
Key: key,
Body: createReadStream(filePath),
},
}).done();
}
void main();
Observed Behavior
Upload fails with InvalidRequest: Checksum Type mismatch occurred, expected checksum Type: crc32, actual checksum Type: null
.
Expected Behavior
Upload succeeds.
Possible Solution
No response
Additional Information/Context
No response
Metadata
Metadata
Assignees
Labels
bugThis issue is a bug.This issue is a bug.p2This is a standard priority issueThis is a standard priority issueresponse-requestedWaiting on additional info and feedback. Will move to \"closing-soon\" in 7 days.Waiting on additional info and feedback. Will move to \"closing-soon\" in 7 days.