我一直在为使用HTTPI.get(url)的Amazon产品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)工作正常
什么可能导致这种情况?
答案 0 :(得分:0)
这被证明是HTTPI版本问题。
HTTPI 2.0.0正常运行,但最新版本2.2.4存在此问题