- Newest
- Most votes
- Most comments
Hello,
Tim here from the AWS Support Team.
Sorry to hear you're having issues with your HTTP API. Based on the description I'm not quite sure at the moment what the exact cause may be (Thanks Uri for helping out!).
I'd like to ask if you can open up an AWS Support case with us? We'd love to take a peek at the account specific items, and we can have multiple teams assist us on that medium (Route53, API Gateway, others if needed).
My understanding is that query string parameters are not forwarded to the VPC Link integration when using either of the custom domain name options (https://d-xxxx.execute-api.eu-central-1.amazonaws.com or xyz.abc.com)
Thank you for the suggestion, Tim. I did end up opening a support case and was able to get this issue resolved! Our API Gateway route had a proxy pass with any method configured which was the culprit. We had to explicitly configure each and every method after which we were able to get this working.
For anyone using HTTP API and the proxy route ANY /{proxy+}
You will need to explicitly define your route methods in order for custom domain routing and CORS to work. Wish this was more explicit in the documentation but hopefully this can help people facing this issue some time!
Can you elaborate on this answer?
explicitly define your route methods
The point of using
ANY /{proxy+}
is to not explicitly define the routes. So doesn't that makes this practically speaking incompatible?
Relevant content
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
Are you able to reach the target but a request parameter is missing? Or are you not even able to reach the API?
We are able to reach the target both of the time. But we're getting a 400 status code when we try to access it via xyz.abc.com or d-xxxx.execute-api.eu-central-1.amazonaws.com. We get the correct response when trying to access the endpoint via https://[ApiId].execute-api.eu-central-1.amazonaws.com
The URL in both cases are the same, the only difference being the domain. The logs suggest that the request is missing query string param when called through xyz.abc.com or d-xxxx.execute-api.eu-central-1.amazonaws.com domain