- Newest
- Most votes
- Most comments
The behavior you're describing is unusual and not the expected functionality for API Gateway with Lambda proxy integration. Typically, both single and multiple query string parameters should be properly captured in the event object passed to the Lambda function.
Given that this issue started occurring recently without any changes made to the API Gateway or Lambda function, there are a few possibilities to consider:
-
Unintended configuration change: Although you mentioned no changes were made, it's worth double-checking the API Gateway configuration, especially the integration settings and any request/response mappings.
-
API Gateway service issue: There could be a temporary problem with the API Gateway service itself. AWS occasionally experiences service-specific issues that can affect behavior.
-
Caching issues: If you're using caching in API Gateway, it's possible that some cached responses are causing inconsistent behavior.
To troubleshoot this issue:
-
Verify the API Gateway configuration, ensuring that the proxy integration is set up correctly and there are no unexpected mappings or transformations.
-
Test with different combinations of query parameters to see if the problem is consistent across various scenarios.
-
If possible, try creating a new API with the same configuration to see if the issue persists in a fresh setup.
-
Check AWS service health dashboards and forums to see if other users are reporting similar issues.
-
If the problem continues, it may be worth contacting AWS support, as this behavior is not typical for API Gateway with Lambda proxy integration.
Remember, in a properly configured proxy integration, API Gateway should pass through all request data, including single and multiple query string parameters, without requiring additional configuration for individual parameters.
Sources
HTTP API Gateway is only forwarding the first parameter string. | AWS re:Post
API Gateway doesn't pass query parameters on to Lambda function when the resource is +proxy/ | AWS re:Post
Relevant content
- asked a year ago
- asked 2 years ago
Maybe, changes have been made on AWS side causing the issue. Can you enable logs -- API Gateway > Stages > [My Stage] > Logs/Tracing -- and see if it gives you clues.
Funnily enough, after posting here it came back to life and started behaving correctly yesterday afternoon.