-
Notifications
You must be signed in to change notification settings - Fork 603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[s3.copyObject]: Invalid character in header content ["x-amz-copy-source"] #6596
Comments
Hey @shadoworion , I can reproduce this issue import { S3Client, GetObjectCommand, CopyObjectCommand } from "@aws-sdk/client-s3";
// Initialize the S3 client
const s3Client = new S3Client({
region: "us-east-1", // Replace with your region
});
const copyObjectCommand = new CopyObjectCommand({
CopySource: `new-bucket-maggie-ma/דוד-טסט_`,
Bucket: "new-bucket-maggie-ma",
Key: "דוד-טסט_new",
});
const resCopyObject = await s3Client.send(copyObjectCommand);
console.log(resCopyObject); The error I got
I will reach out to service team and check if there's an updates. Thanks! |
Hey @zshzbh Any updates? |
Hey @shadoworion . I haven't got back from service team, I will follow up this issue with them. Internal ref- V1599096015 Thanks! |
@shadoworion @zshzbh, try to wrap |
@Nitro-N Thanks for the workaround solution. I think we can use the encode function as a workaround now, but still I want to let the service team know this issue. I have not received anything from service team yet, will try to reach out again. Sorry for the wait and thanks for the provided workaround |
Checkboxes for prior research
Describe the bug
It looks like the "copyObject" function does not support Hebrew in the location path.
Regression Issue
SDK version number
@aws-sdk/[email protected]
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
22.8.0
Reproduction Steps
Observed Behavior
Expected Behavior
Not to get an error
Possible Solution
No response
Additional Information/Context
No response
The text was updated successfully, but these errors were encountered: