V2 Lex OrderFlowers Blueprint Lambda Error

1

I am following the v2 Lex Developer Guide to create the OrderFlowers Blueprint Lex. I followed the steps to add a Lamba function (page 145) in the guide (https://docs.aws.amazon.com/lexv2/latest/dg/lex2.0.pdf). When I execute the Lex Bot it throws the error below. Do you have any suggestions what is causing this? Thank You!

Invalid Lambda Response: Your request to Amazon Lex couldn't be completed. Lambda function arn:aws:lambda:us-east-1:994504927747:function:OrderFlowersCodeHook:OrderFlowersCodeHook encountered a problem while processing Amazon Lex request 4c270a5e-4883-4df4-98b7-996be1cbb627. The error message from the Lambda function is Unhandled. Check the Lambda function log for error details, then try your request again after fixing the error.

질문됨 2년 전497회 조회
1개 답변
1

I believe I found the answer. The Lex v2 Input and Response Formats are different than Lev v1. The Lambda Order Flowers Blueprint uses the v1 format. Refer to "Migrating a Lambda function" in the documentation: docs.aws.amazon.com/lex/latest/dg/message-lambda.html

답변함 2년 전

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

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

질문 답변하기에 대한 가이드라인

관련 콘텐츠