Skip to content
This repository has been archived by the owner on Mar 14, 2021. It is now read-only.

SignatureDoesNotMatch #159

Closed
gagan-90 opened this issue Aug 24, 2017 · 2 comments
Closed

SignatureDoesNotMatch #159

gagan-90 opened this issue Aug 24, 2017 · 2 comments

Comments

@gagan-90
Copy link

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.

define('AWS_API_KEY', 'AKIALPE2A');
define('AWS_API_SECRET_KEY', 'UNR
*********Fi1BXh+5');
define('AWS_ASSOCIATE_TAG', '123
c5b-21'); // associate tag is that associtate ID
define('AWS_ANOTHER_ASSOCIATE_TAG', 'te*****21'); // where i find that

@CydeSwype
Copy link

CydeSwype commented Nov 6, 2017

I get the same error. Trying to follow one of the examples in the repo and i get the following:

Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error: `GET http://webservices.amazon.com/onca/xml?AWSAccessKeyId=**redacted**&AssociateTag=yawmp-20&BrowseNodeId=542064&Operation=BrowseNodeLookup&Service=AWSECommerceService&Timestamp=2017-11-06T22%3A09%3A32Z&Version=2013-08-01&Signature=**redacted**%3D` resulted in a `403 Forbidden` response: <?xml version="1.0"?> <BrowseNodeLookupErrorResponse xmlns="http://ecs.amazonaws.com/doc/2013-08-01/"><Error><Code>Signa (truncated...) in /Users/MacOSX/projects/wildfire/backoffice-poc/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113 Stack trace: #0 /Users/MacOSX/projects/wildfire/backoffice-poc/vendor/guzzlehttp/guzzle/src/Middleware.php(65): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response)) #1 /Users/MacOSX/projects/wildfire/backoffice-poc/vendor/guzzlehttp/promises/src/Promise.php(203): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHt in /Users/MacOSX/projects/wildfire/backoffice-poc/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php on line 113

@CydeSwype
Copy link

I resolved my issue by looking here: https://affiliate-program.amazon.com/assoc_credentials/home and creating a new set of credentials. I think I may have been using different API credentials for this (general API credentials instead of specific affiliate API credentials).

@Exeu Exeu closed this as completed Jan 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants