Using Google App Scripts to connect with Amazon S3

1

I have a Google Sheets add-on which let users get stock price in Google Sheets. I am trying to copy users' request in the spreadsheet to S3. I am using the same library as in this question on Stackoverflow and I encounter the exact same error:

AWS Error - SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your key and signing method

Just wondering whether anyone has experience with this? The solution in that question does not work for me

질문됨 2년 전1576회 조회
1개 답변
0

Hey,

When you use AWS services such as S3, your request is authenticated using an algorithm called SigV4. This should be done automatically by the library you're using (in your case S3-for-Google-Apps-Script) but this error message suggests that this process has been done incorrectly.

This is most likely an issue with the library you are using and so you'll probably have the most luck if you reach out to the authors e.g. by creating an issue on their GitHub page.

However, I've had a quick look through their code and it looks like their SigV4 code is hard-coded to use the AWS us-east-1 region Therefore, you may find it works if you try using an S3 bucket located in us-east-1 (N. Virginia)

Thanks,

Marrick.

Marrick
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠