Code Monkey home page Code Monkey logo

Comments (5)

tpietsc1 avatar tpietsc1 commented on July 16, 2024

I had a similar issue. I did not get an X-Amz-Content-Sha256 header although the body was provided before signing the request.
To get this work provisionally I made a fork and added my service to this line:

aws4/aws4.js

Line 154 in a413aad

if (this.service === 's3' && !headers['X-Amz-Content-Sha256'] && !headers['x-amz-content-sha256'])

from aws4.

chyke007 avatar chyke007 commented on July 16, 2024

Having same issue, works on Postman

from aws4.

JBetts97 avatar JBetts97 commented on July 16, 2024

Hi,

Did you find a solution to this? Is there another way of getting the X-Amz-Content-Sha256 header?

from aws4.

chyke007 avatar chyke007 commented on July 16, 2024

Yes, I did find a solution, I had to sign the body also: https://github.com/chyke007/facial-vote/blob/main/facial-vote-frontend/src/pages/api/vote.ts

from aws4.

JBetts97 avatar JBetts97 commented on July 16, 2024

Perfect! - Thanks @chyke007 for the quick response! 👍🏻

Glad you found solution. I've also managed to resolve my issue and POST the request using AXIOS library: https://medium.com/@joshua.a.kahn/calling-amazon-api-gateway-authenticated-methods-with-axios-and-aws4-6eeda1aa8696

from aws4.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.