Getting error regarding signing request #3558
Labels
bug
This issue is a bug.
closing-soon
This issue will automatically close in 4 days unless further comments are made.
Describe the bug
When using the SDK I am receiving this error below. I am not sure if this has something to do with using version 4 for signing. All I did was update the nuget packages to 4.x
The request signature we calculated does not match the signature you provided. Check your key and signing method.
Regression Issue
Expected Behavior
I expected to make a PutObject request using the SDK
Current Behavior
I am receiving the error below on the same code before I updated the package
The request signature we calculated does not match the signature you provided. Check your key and signing method.
Reproduction Steps
`using var client = new AmazonS3Client("ACCESS_KEY", "SECRET_KEY",RegionEndpoint.USEast1);
try
{
var bytes = Convert.FromBase64String(base64Content);
using var stream = new MemoryStream(bytes);
var putRequest = new PutObjectRequest()
{
BucketName = "cdn.test.com/vcards",
Key = $"{fileName}.vcf",
InputStream = stream,
ContentType = "text/x-vcard"
};
Possible Solution
No response
Additional Information/Context
No response
AWS .NET SDK and/or Package version used
AWSSDK 4.0.0-preview.4
Targeted .NET Platform
.NET 7
Operating System and version
MacOS & Docker
The text was updated successfully, but these errors were encountered: