跳至内容

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"}}))
已提问 6 年前510 查看次数
2 回答
0

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

已回答 6 年前
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

已回答 6 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。