Amazon Product API Issues: The request has not been correctly signed.

0

I posted about this in the past and never got any help, and even reached out to amazon directly and got no replies. Now, with recent changes to Amazon's Sitestripe, I need to use the API now more than ever, and I don't understand why it is so difficult to do so.

I am trying to get started with the Amazon Product API, and have set up some of their sample java files in VS Code. I inputted my access key and secret key and one of my amazon affiliate store IDs, and I continue to get this error:

API called successfully Complete response: class GetItemsResponse { errors: [class ErrorData { code: InvalidSignature message: The request has not been correctly signed. If you are using an AWS SDK, requests are signed for you automatically; otherwise, go to https://webservices.amazon.com/paapi5/documentation/sending-request.html#signing.

When I try through ScratchPad, it says "HTTP Status: 401: Unauthorized | Response Time: 102 ms | Request ID: d5dbe112-8df9-4533-854a-67f4e47525dc"

I have deleted and remade my keys multiple times and nothing changes. Can I get some assistance with this please?

질문됨 6달 전569회 조회
1개 답변
0

Hi,

Some of AWS API endpoints are Global, and some are region-specific. Not sure about your specific case, but give it a try and either use the same region to create signature or use version 4A. More details you can find here: https://docs.aws.amazon.com/IAM/latest/UserGuide/create-signed-request.html#

profile picture
전문가
답변함 6달 전
  • I can try changing the region, but I don't see any region on the amazon affiliates page where I create the credentials. So I don't know what region to enter in the sample code, which said "us-east-1" initially (I'm from US West, and changing that gave me the same error about the signature). I looked at the link you shared but this is even more complicated and confusing, so I will have to spend some time on it. Is this the process every amazon affiliate needs to go through to use the API?

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

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

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

관련 콘텐츠