我正在尝试从 API Gateway 代理请求中检索请求正文。当我通过一个身体时,我得到一个随机字符串。该请求在 API 网关中的测试中运行良好,但在实际 API 中运行良好
我得到的要求是
{
"path": "/movie",
"headers": {
"sec-fetch-mode": "cors",
"sec-fetch-site": "none",
"accept-language": "en-US,en;q=0.9",
"postman-token": "e9f9216f-850d-1037-a2c9-d6a554f55813",
"origin": "chrome-extension://fhbjgbiflinjbdggehcddcbncdddomop",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36",
"X-Forwarded-Proto": "https",
"Host": "8cfsbr5d62.execute-api.us-east-1.amazonaws.com",
"X-Forwarded-Port": "443",
"X-Amzn-Trace-Id": "Root=1-5ed9e7b8-94f205f0fed74580d6bb5bf0",
"accept": "*/*",
"X-Forwarded-For": "49.206.4.254",
"content-type": "application/json",
"cache-control": "no-cache",
"accept-encoding": "gzip, deflate, br",
"sec-fetch-dest": "empty"
},
"resource": "/movie",
"queryStringParameters": {
"movie": "ddk"
},
"httpMethod": "POST",
"body": "ewoJIm1vdmllIjoiZ3BwIgp9"
}