- Newest
- Most votes
- Most comments
It seems like you're encountering an issue with your HTTP API Gateway not forwarding all query string parameters to your backend endpoint. This is unexpected behavior for an HTTP proxy integration, which should pass through all request data, including query string parameters.
For an HTTP API Gateway with a /{proxy+} route and ANY method using HTTP proxy integration, all query string parameters should be automatically forwarded to the backend endpoint without any additional configuration.
To troubleshoot this issue:
-
Double-check that you are indeed using HTTP proxy integration. In the API Gateway console, verify that the integration type for your route is set to "HTTP proxy."
-
Ensure that your backend endpoint (webhook.site in this case) is correctly configured to receive and display all query parameters. Sometimes, the issue might be with how the receiving end processes or displays the parameters.
-
Try testing with different combinations of query parameters to see if the problem persists across various scenarios.
-
If possible, try creating a new API with the same configuration to see if the issue is specific to your current setup.
-
Check if there are any request or response transformations applied to your API that might be interfering with the query string parameters.
If the problem persists after these checks, it may be worth contacting AWS support, as this behavior is not typical for HTTP proxy integration in API Gateway. HTTP proxy integration should pass through all request data, including headers, query string parameters, URL path variables, and payload, without requiring any additional configuration for individual parameters.
Remember that for non-proxy integrations, you would need to explicitly map query string parameters, but this shouldn't be necessary for your HTTP proxy integration setup.
Sources
Tutorial: Create a REST API with an HTTP proxy integration - Amazon API Gateway
API Gateway doesn't pass query parameters on to Lambda function when the resource is +proxy/ | AWS re:Post
