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
preguntada hace 5 años413 visualizaciones
2 Respuestas
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

respondido hace 5 años
0

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

scott
respondido hace 5 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas