Skip to content

Lambda not received "client-context"

0

I read this:https://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html.
I think code is can receive "conext.client_context.custom" children. by this invoke.

aws lambda invoke --function-name "targetlambda" --invocation-type RequestResponse --client-context "eyJjb3VzdG9tIjp7ImZpenoiOiJidXp6In19" "output"

but.can't received this.
I try changing Runtime for Lambda to "Node.js 10.x". Result is success.Node.js Lambda can received.

client-context generated by javascript oneliner.

window.btoa(JSON.stringify({"coustom":{"fizz":"buzz"}}))

asked 7 years ago569 views

2 Answers
0

"coustom" is typo. I fix to "custom"

answered 7 years ago

0

Hi TAC,

Glad you fixed it! Do you mind sharing a bit what is your purpose of using Client Context here? This is for my learning only. You can DM me.

Thanks
Jia

answered 7 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.