Open mateodelnorte opened 8 years ago
Can you verify that your AWS credentials are correctly configured in Node? For example, are you able to make any other requests to any AWS service?
I got a very similar looking error message, and it was due to the CORS policy on my AWS bucket. This might be the case if you can use curl
to successfully upload to the presigned url that your server is generating.
@dgrosenblatt For the rest of us, what was the problem with your CORS config in AWS? What did you do to fix it?
If you select the bucket and go to Properties > Permissions > Edit CORS Configuration, add something like
</CORSConfiguration>
<CORSRule>
<AllowedOrigin>Your-Base-Domain-Here</AllowedOrigin>
<AllowedMethod>PUT</AllowedMethod>
<AllowedHeader>*</AllowedHeader>
</CORSRule>
</CORSConfiguration>
Thanks @dgrosenblatt, however that didn't turn out to be my issue.
After futzing around for a while I ended up creating a new user with the exact same policy and voila, 🍾 .
Here's the policy for reference:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:PutObjectAcl"
],
"Resource": "arn:aws:s3:::bucket_name/*"
}
]
}
Hi there.
I'm getting
The request signature we calculated does not match the signature you provided. Check your key and signing method.
back from AWS when trying to submit files. I'm on version"react-s3-uploader": "^3.3.0"
.Any ideas what may be happening?
Here's my setup:
express:
react: (I'm using DropzoneS3Uploader, which just wraps the S3Upload component.)
Here's the complete error I'm getting back. I notice the CanonicalRequest is labeled as UNSIGNED-PAYLOAD. Not sure if that's indicative of what's going on...