Cloudsearch API网关映射模板

时间:2019-10-31 22:15:36

标签: aws-api-gateway amazon-cloudsearch

我定义了一个映射模板,以将逗号分隔的查询参数列表更改为运行良好的结构化查询。该查询给了我SignatureDoesNotmatch错误,但是如果我在浏览器中命中了相同的生成cloudsearch查询,它就可以正常工作。

例如查询该API网关生成的-

/2013-01-01/search?q=(and+(term+field%3Dindustrytags+'biz:industry:healthcare')(term+field%3Dsolutiontags+'biz:solution:reduce-costs'))&q.parser=structured&return=title,description,path,image

此查询使我在API网关中出现以下错误,但是如果我在浏览器中复制粘贴内容,则可以正常工作

  "__type": "#SignatureDoesNotMatch",
  "error": {
    "message": "[*Deprecated*: Use the outer message field] 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": "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."
}```

0 个答案:

没有答案