simples3 icon indicating copy to clipboard operation
simples3 copied to clipboard

The request signature we calculated does not match the signature you provided

Open warnacloud opened this issue 1 year ago • 3 comments

Hi, I'm having an error using this library, I found this error when using with the code below

<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message>

this is sample code

s3 := simples3.New("us-east-1", "xxxxx", "xxxxx")
	res, err := s3.FileDownload(simples3.DownloadInput{
		Bucket:    "mybucket",
		ObjectKey: "test.txt",
	})
	if err != nil {
		panic(err)
	}
	body, err := ioutil.ReadAll(res)
	if err != nil {
		panic(err)
	}

	fmt.Println(string(body))

I have tested the credentials and there are no issues

warnacloud avatar Apr 05 '23 02:04 warnacloud

@warnacloud Did you find the problem?

AtlanCI avatar Apr 10 '23 09:04 AtlanCI

@warnacloud Did you find the problem?

the problem is in the canonical request and signed method

warnacloud avatar Jul 08 '23 15:07 warnacloud

Hi

It is working with our minio testsuite as well as a test bucket on s3. Can you run the tests with your key and let me know what the output is?

image

rhnvrm avatar Jul 13 '23 05:07 rhnvrm