-
-
Notifications
You must be signed in to change notification settings - Fork 226
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.SelectObjectContent throws SignatureDoesNotMatch
exception
#965
Comments
In which region did you create the bucket? Although S3 is a global service, buckets are attached to regions and you might be signing your request for the wrong region. |
@endgame |
Weird. Here are some things I'd like to see to help debug this:
|
Request dump:
Via AWS cli:
output2023-11-18 11:33:38,953 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/2.13.7 Python/3.11.4 Darwin/22.6.0 exe/x86_64 host;x-amz-content-sha256;x-amz-date;x-amz-security-token
Well, my bucket is a private bucket. All I did was uploaded a small csv file and tried running s3 select API from a haskell script. One difference I note between the request made by amazonka and aws cli is that |
I'm also currently investigating a I'll add a bit more data when I can. |
My problem is probably something altogether different, so I opened a different issue: #975 |
Trying out the s3 select feature by amazon using
SelectObjectContent
API by amazonka results inSignatureDoesNotMatch
despite correct credentials. The following is the only function that fails out of all that are listed inexamples/src/S3.hs
.I'm not sure if I am doing something wrong here or there's something wrong with the API itself.
Here's a small function that can be plugged into
example/src/S3.hs
module:which results in he following error:
Also, I'm using
AWS_PROFILE
for calling these APIs.The text was updated successfully, but these errors were encountered: