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

preguntada hace 2 años1575 visualizaciones
1 Respuesta
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
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas