alexa-app icon indicating copy to clipboard operation
alexa-app copied to clipboard

Problem when sending action values with special characters

Open mwkrieger opened this issue 7 years ago • 4 comments

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?

mwkrieger avatar Jul 20 '17 13:07 mwkrieger

Doesn't look like there's anything wrong here. I would ask an AWS forum, could be a platform bug.

dblock avatar Jul 20 '17 13:07 dblock

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.

tejashah88 avatar Jul 20 '17 15:07 tejashah88

Thanks, I have a question out to them. I'll report back if they answer.

mwkrieger avatar Jul 20 '17 21:07 mwkrieger

@mwkrieger Any response from the AWS fourms?

tejashah88 avatar Jan 27 '18 00:01 tejashah88