Hi, since you didn't create any stage, that means that you're the default stage '$default'. The route that you configured isn't correct and you need to set the route to $default and add the integration to your webservice endpoint like http://webservice_url
To rectify this, first delete all the existing routes and then follow these steps:
- Go to your API Gateway and select Route
- Click Create
- Leave the Any method as is and type in the path $default without a leading slash.
- Click on Attach integration and select your webservice endpoint
Eventually, this is how it should look like:
Routes:
Integrations:
Hi,
{"message":"Not Found"} is technically an HTTP 404 status code. It looks like the API Gateway routing isn't set correctly, meaning that you're trying to fetch an item that doesn't exist in the requested path or you're using incorrect path in the requested URL.
Can you provide some details on what the API gateway routing and stages look like?
Also what's the URL path that you're using when hitting the API gateway?
Relevant content
- asked 5 months ago
- asked 3 months ago
- asked 6 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 5 months ago
Hello
When we created the API Gateway we didn't specify any stage. It was left to AWS to decide which stage to be used.
As for routes, we tried using the following and none of them worked.
/ GET / ANY {proxy+}
the URL that we're using on our clients is:
https://api_gateway_url/req11.json
In our testing we used Postman and Curl and both are showing the same result.