AWS API Gateway returns 301/403 instead of the expected response

0

Hi there. New to AWS.

I set up an AWS API Gateway and set up a proxy integration as per this guide: https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-create-api-as-simple-proxy-for-http.html It works perfectly for the guide above. I tried doing exactly the same thing but instead of petstore, i just gave the url for my django app running on an ec2 server (the app itself runs smoothly). When i try to test the gateway method from the "test" tab, it gives 301. When I try to send a request via postman or curl, i get 403 forbidden. In neither case, do i get the actual response that i should be getting if i hit the url directly without going via api gateway. Any ideas as to what's going on here?

Sourav
已提問 4 個月前檢視次數 189 次
1 個回答
0

Is it a private or public API Gateway? Does it have a custom domain?

AWS
vtjean
已回答 4 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南