Amazon web services 如何使用HTTP代理集成配置AWS apigateway代理资源?

Amazon web services 如何使用HTTP代理集成配置AWS apigateway代理资源?,amazon-web-services,aws-api-gateway,http-proxy,api-gateway,Amazon Web Services,Aws Api Gateway,Http Proxy,Api Gateway,由于配置错误,执行失败:索引46处的路径中存在非法字符:{proxy}?type=fish 日志: Execution log for request 965a6cd1-1f68-4b33-8bab-3741e40b0028 Fri Mar 20 08:19:39 UTC 2020 : Starting execution for request: 965a6cd1-1f68-4b33-8bab-3741e40b0028 Fri Mar 20 08:19:39 UTC 2020 : HTTP M

由于配置错误,执行失败:索引46处的路径中存在非法字符:{proxy}?type=fish

日志:

Execution log for request 965a6cd1-1f68-4b33-8bab-3741e40b0028
Fri Mar 20 08:19:39 UTC 2020 : Starting execution for request: 965a6cd1-1f68-4b33-8bab-3741e40b0028
Fri Mar 20 08:19:39 UTC 2020 : HTTP Method: GET, Resource Path: /test/petstore/pets
Fri Mar 20 08:19:39 UTC 2020 : Method request path: {proxy=petstore/pets}
Fri Mar 20 08:19:39 UTC 2020 : Method request query string: {type=fish}
Fri Mar 20 08:19:39 UTC 2020 : Method request headers: {}
Fri Mar 20 08:19:39 UTC 2020 : Method request body before transformations: 
Fri Mar 20 08:19:39 UTC 2020 : Endpoint request URI: http://petstore-demo-endpoint.execute-api.com/{proxy}?type=fish
Fri Mar 20 08:19:39 UTC 2020 : Endpoint request headers: {x-amzn-apigateway-api-id=ssg89ys6y6, User-Agent=AmazonAPIGateway_ssg89ys6y6}
Fri Mar 20 08:19:39 UTC 2020 : Endpoint request body after transformations: 
Fri Mar 20 08:19:39 UTC 2020 : Sending request to http://petstore-demo-endpoint.execute-api.com/{proxy}?type=fish
Fri Mar 20 08:19:39 UTC 2020 : Execution failed due to configuration error: Illegal character in path at index 46: http://petstore-demo-endpoint.execute-api.com/{proxy}?type=fish
Fri Mar 20 08:19:39 UTC 2020 : Method completed with status: 500

为其他面临此问题的人添加此内容


为其他面临此问题的人添加此内容


实际上,我正在尝试为我的ELB配置代理,我遇到了上面提到的相同错误“配置错误导致执行失败:路径中的字符非法”,因此我尝试创建测试代理资源,并使用了pets端点,即使测试结束,我也会犯同样的错误。有人能帮我吗?你检查过了吗?您好@SurajBhatia非常感谢您的回复..我查看了链接。。我错过了第5步“对于映射自,请输入method.request.path.proxy”。我现在修复了它。再次感谢您,我正在尝试为我的ELB配置代理,我遇到了上面提到的相同错误“由于配置错误导致执行失败:路径中的非法字符”,因此我尝试创建一个测试代理资源,并使用了pets端点,即使测试结束,我也会犯同样的错误。有人能帮我吗?你检查过了吗?您好@SurajBhatia非常感谢您的回复..我查看了链接。。我错过了第5步“对于映射自,请输入method.request.path.proxy”。我现在修好了。再次感谢