alexa-app
alexa-app copied to clipboard
Problem when sending action values with special characters
Pulling my hair out on this one...
If, I send the following to the alexa service, I get a successful response.
{ primaryText:
{ text: '<action value=\'textMe1234\'>Text this to me</action><br/>',
type: 'RichText' }
}
But if I add anything but alphanumeric characters like colons, dashes, etc, I get a failure response from the service stating "The response is invalid". An example of this would be:
{ primaryText:
{ text: '<action value=\'textMe:1234\'>Text this to me</action><br/>',
type: 'RichText' }
}
I need to send a function back called textMe with a slug that usually has dashes in them. For example, textMe:this-article-slug.
Every time I put dashes or colons in the action value, I get a failure.
Any possible suggestions on where I can start with this?
Doesn't look like there's anything wrong here. I would ask an AWS forum, could be a platform bug.
Looking over at the textObject specs, down to the part where they talk about the actions, it looks like you can use an underscore in place of the dashes or colons to some degree. This could be intentional but I encourage you to ask in the AWS forums just in case.
Thanks, I have a question out to them. I'll report back if they answer.
@mwkrieger Any response from the AWS fourms?