Shivam Chawla
Shivam Chawla
This test is testing the request with a prefilled APIGatewayProxyRequest object. The double encoding is happening because querystring is being encoded again before filling the APIGatewayProxyRequest: https://github.com/apex/gateway/blob/46d1104cd6db3bb9e0c0dcde71ddf15db8d87cf1/request.go#L33
So let me explain it this way: I have a url something.com I want to send a phone number` +919999999999` in the query string The frontend encodes the url with...
> It sounds like the issue is that the parameters are already percent encoded in APIGatewayProxyRequest, which AFAICT is wrong. From my understanding, the frontend does encode all query parameters...
Just checked. They aren't being decoded by AWS.
I did an experimental setup. I don't use api gateway instead I have a load balancer that directly calls the lambda application via target groups
I don't think that can be done with AWS's ALBs. Does the api gateway decode the query string before making the request to lambda?