PresignedGetObject generates invalid signature
See original GitHub issueHello! I think I found a critical bug or I completly misunderstand smth. My code is like this: var client = new MinioClient(_urlWithRegion, _awsAccessKey, _awsSecretKey); var itemUrl = client.PresignedGetObject(bucketName, “c07adf03ee5a4c11865e7272477b061c.jpg”, 3600*24);
I recieve the url, but when I try to get the object I get this:
<Error>
<script/>
<Code>SignatureDoesNotMatch</Code>
<Message>
The request signature we calculated does not match the signature you provided.
</Message>
<Key/>
<BucketName/>
<Resource>/testbucket/c07adf03ee5a4c11865e7272477b061c.jpg</Resource>
<RequestId>3L137</RequestId>
<HostId>3L137</HostId>
</Error>
I tried to get the url with minio console client and it works ok. The url is the same except for date and signature.
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
2.0.2 presignedGetObject broken, invalid signature #456
However, when I generate a pre-signed URL I always receive a 404 from minio server, saying SignatureDoesNotMatch.
Read more >Invalid signature with S3 putObject presigned url
1 Answer. In Signature Version 2, at least, the value from the Content-Type header is an integral part of the signature algorithm... so...
Read more >Client SDK Invalid Signature errorCode:200 PHP - Web
Everything i tried DID generate a signature but always an invalid one. Credential are working on the sample app and the php code...
Read more >Why does jwt.verify() give "invalid signature"?
I have successfully configured an app and logged in a user using the /01-Login/ javascript example in the Auth0 github. I tested the...
Read more >MinioClient (api 6.0.1 API) - javadoc.io
Returns a presigned URL string with given HTTP method, expiry time and custom request params for a specific object in the bucket. void,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
If you are using the endpoint of S3 “https://s3.amazonasw.com”, it crashes, because port 443 > 0.
Oops @flaviocarmo let us fix it… thanks for reporting