내용으로 건너뛰기

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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠