我一直在为使用 HTTPI.get(url) 的亚马逊产品 API 调试 ASIN gem,直到最近,HTTPI.get(url) 请求才返回以下错误:
HTTPI GET request to webservices.amazon.com (excon)
got response='<?xml version="1.0"?>
<ItemSearchErrorResponse xmlns="http://ecs.amazonaws.com/doc/2011-08-01/"><Error>
<Code>SignatureDoesNotMatch</Code>
<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.</Message></Error>
<RequestId>b73cc1c9-a682-453f-a8c8-1fcc5d1f3767</RequestId></ItemSearchErrorResponse>'
我的 httpi gem 是 v2.2.4 我也尝试使用 HTTParty.get(url) 效果很好
这可能是什么原因造成的?