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
gefragt vor 5 Jahren413 Aufrufe
2 Antworten
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

beantwortet vor 5 Jahren
0

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

scott
beantwortet vor 5 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen