An error has occurred: The server encountered an error processing the Lambda response

0

Using Lex V1 Console and python 3.7 (for studying purposes), trying to build a bot with Lambda. Successfully tested all events along with python codes but can't seems to work. Bot was successfully build too but when I try to test it, as soon as I input the 1st utterance, it responded "An error has occurred: The server encountered an error processing the Lambda response."

已提问 2 年前237 查看次数
1 回答
0

Hi,

please check that your Lambda function response matches the expected format: https://docs.aws.amazon.com/lex/latest/dg/lambda-input-response-format.html#using-lambda-response-format.

You can also look at the following gist that provides a sample implementation and some utility functions https://gist.github.com/alexcasalboni/3ea2d8dda11c6b73bbf98adf2dd6a214

Feel free to post a sample response in case you still cannot solve the issue, taking care of removing any sensitive information.

Cheers,

Massimiliano

AWS
专家
已回答 2 年前

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

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

回答问题的准则