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

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

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

回答問題指南