convoworks-core
convoworks-core copied to clipboard
List item response platform rendering issue
While I was testing the backwards combability of our Visual Elements on Alexa, the renderer on Alexa Developer Console Test View throwed some unusual error.
More on that error is in the following screenshot:
After taking a closer look it seems that list items that contain special character like '&', produce unexpected skill errors.
Sample data that was used against:
{
"meals": [
{
"strMeal": "Chick-Fil-A Sandwich",
"strMealThumb": "https://www.themealdb.com/images/media/meals/sbx7n71587673021.jpg",
"idMeal": "53016"
},
{
"strMeal": "Chicken Couscous",
"strMealThumb": "https://www.themealdb.com/images/media/meals/qxytrx1511304021.jpg",
"idMeal": "52850"
},
{
"strMeal": "Chicken Fajita Mac and Cheese",
"strMealThumb": "https://www.themealdb.com/images/media/meals/qrqywr1503066605.jpg",
"idMeal": "52818"
},
{
"strMeal": "Chicken Ham and Leek Pie",
"strMealThumb": "https://www.themealdb.com/images/media/meals/xrrtss1511555269.jpg",
"idMeal": "52875"
},
{
"strMeal": "Chicken Quinoa Greek Salad",
"strMealThumb": "https://www.themealdb.com/images/media/meals/k29viq1585565980.jpg",
"idMeal": "53011"
},
{
"strMeal": "General Tso's Chicken",
"strMealThumb": "https://www.themealdb.com/images/media/meals/1529444113.jpg",
"idMeal": "52951"
},
{
"strMeal": "Honey Balsamic Chicken with Crispy Broccoli & Potatoes",
"strMealThumb": "https://www.themealdb.com/images/media/meals/kvbotn1581012881.jpg",
"idMeal": "52993"
},
{
"strMeal": "Katsu Chicken curry",
"strMealThumb": "https://www.themealdb.com/images/media/meals/vwrpps1503068729.jpg",
"idMeal": "52820"
},
{
"strMeal": "Rappie Pie",
"strMealThumb": "https://www.themealdb.com/images/media/meals/ruwpww1511817242.jpg",
"idMeal": "52933"
}
]
}
The following record with strMeal Honey Balsamic Chicken with Crispy Broccoli & Potatoes produced this unexpected error.
The solution is to replace such character with their appropriate substitutes on all platforms.