question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PresignedGetObject generates invalid signature

See original GitHub issue

Hello! 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:closed
  • Created 7 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
flaviocarmocommented, Jul 27, 2016

If you are using the endpoint of S3 “https://s3.amazonasw.com”, it crashes, because port 443 > 0.

0reactions
harshavardhanacommented, Jul 27, 2016

Oops @flaviocarmo let us fix it… thanks for reporting

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found