I have deployed your lambda function with cloudfront distribution but when i try to pass query string it gives me error 502 lambda function invalid URI format.
Url: cloudforntdist.cloudfront.net/search?q=&subtype=subtype%20type&purpose=purpose&type=type