Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details. #5

Open
sramesh8391 opened this issue Mar 26, 2019 · 0 comments

Comments

@sramesh8391
Copy link

sramesh8391 commented Mar 26, 2019

I tried your code in my API it shows some error like this

{
    "message": "The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.",
    "code": "SignatureDoesNotMatch",
    "time": "2019-03-26T09:17:35.688Z",
    "requestId": "fe4e7d29-4fa7-11e9-bc9c-73fcff5b59b9",
    "statusCode": 403,
    "retryable": false,
    "retryDelay": 82.02929132453885
}

This is my code

var AWS = require('aws-sdk'); //Email config
var ses = new AWS.SES();
exports.verifyEmail = (req, res) =>{
  var email   = "[email protected]";
  var params = {
      EmailAddress: email
  };
  ses.verifyEmailAddress(params, (err, data) =>{
      if(err) {
          res.send(err);
      } 
      else {
          res.send(data);
      } 
  });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant