alexa-samples / skill-sample-nodejs-adventure-game

This tool provides an easy to use front-end that allows developers to instantly deploy code for your story, or use the generated code as a starting point for more complex projects.
Apache License 2.0
510 stars 218 forks source link

Request is not valid - Error parsing the requested content. Please validate the input #74

Closed lhgustin closed 6 years ago

lhgustin commented 6 years ago

I'm following the ask-cli steps from https://github.com/alexa/skill-sample-nodejs-adventure-game. I'm running ask deploy and got this message

Request is not valid - Error parsing the requested content. Please validate the input

More precisely :

-------------------- Update Skill Project --------------------
Skill Id: amzn1.ask.skill.d1591672-6356-4e3d-863b-b0c54ee276ff
Skill deployment finished.
Call update-model error.
Error code: 400
{
  "message": "Request is not valid.",
  "violations": [
    {
      "message": "Error parsing the requested content. Please validate the input
."
    }
  ]
}

I solved the missing .ask/config issue by creating one like https://github.com/alexa/skill-sample-nodejs-audio-player/issues/80

Now I'm still stuck. ask deploy --debug gives me :

issue_debug.txt

franklin-lobb commented 6 years ago

@lhgustin I'm taking a look. Did you try to copy and paste the interaction model directly into the skill builder? (Not saying that you should have to, just trying to eliminate causes).

franklin-lobb commented 6 years ago

The skill now successfully deploys via the ask deploy command.

lhgustin commented 6 years ago

I've just copied the model into the web interface, then rebuilt it . Build was successful. Re-running ask deploy still gives me the error. How did you fix the issue on your side ?

lhgustin commented 6 years ago

No lambda function seems to be created neither ...

franklin-lobb commented 6 years ago

You can see the exact changes here, however the issue was the id attribute was in the wrong place. I also moved the invocationName to the top, but that was more aesthetic.

I believe the Lambda function is only created after the first successful skill deploy.