Invalid Lambda Response says Text can't be empty or null. How to fix?

0

I've programmed a lambda function to return an ElicitIntent with a "contentType" of "application/vnd.amazonaws.card.generic". When Lex receives the response it throws this error:

An error has occurred: Invalid Lambda Response: Received invalid response from Lambda: Can not construct instance of Button$Builder, problem: Text can't be empty or null

I don't understand "Text", with the capital T. There is no "Text" in my return response. I have "text" as part of my buttons but they are not empty.
I'm confused. Any help appreciated.

scott
질문됨 5년 전413회 조회
2개 답변
0

Thank you for using Amazon Lex.
Please check if the length of the button text is between 1 to 15 characters. Let us know if you're still seeing issues.

Reference : https://docs.aws.amazon.com/lex/latest/dg/API_runtime_Button.html

답변함 5년 전
0

So it turns out it's the LENGTH of my text. The text can't exceed 15 characters.

scott
답변함 5년 전

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

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

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

관련 콘텐츠