Querystring params in websocket api aws issue
Asked Answered
B

1

6

I am trying to pass query string through my WebSocket connections by wss://connection_url?queryparam=param

but the lambda function invoked by the connection is not able to read the query param. in fact I printed the integration response received to lambda function and it doesn't show any query param in it. should I need to configure in API gateway to allow query string params please help

Bield answered 1/5, 2020 at 15:42 Comment(1)
Can you post your Lambda code? You should be able to see queryStringParameters in the event, if you are using Lambda ProxyMixture
I
-1

Yes, enable Use Lambda Proxy integration. See https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html

Impost answered 8/1, 2021 at 17:1 Comment(1)
Can you please be more precise here. I have my proxy integration enabled and still i am unable to see the queryStringParameters in the event object. ThanksCastaneda

© 2022 - 2024 — McMap. All rights reserved.