我一直在调试ASIN gem for Amazon product API,它使用HTTPI.get(url),直到最近,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),它工作得很好
是什么导致了这一切?
发布于 2014-07-27 02:22:49
事实证明这是一个HTTPI版本控制问题。
HTTPI 2.0.0工作正常,但最新版本2.2.4有此问题
https://stackoverflow.com/questions/24973837
复制相似问题