跳至內容

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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。