Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example endpoint not found #93

Closed
cpup22 opened this issue Dec 26, 2016 · 3 comments
Closed

Example endpoint not found #93

cpup22 opened this issue Dec 26, 2016 · 3 comments

Comments

@cpup22
Copy link

cpup22 commented Dec 26, 2016

If I don't include an express route explicitly, for example, the code below works:

app.post('/appname', function(req, res) {
    res.json({
      "version": "1.0",
      "response": {
        "shouldEndSession": true,
        "outputSpeech": {
          "type": "SSML",
          "ssml": "<speak>Hmm <break time=\"1s\"/> not sure why we misconfigured this skill</speak>"
        }
      }
    });

});

then my node app throws a "There was an error calling the remote endpoint, which returned HTTP 404 : Not Found". I'm using the example code and it doesn't set the endpoint anywhere. What am i doing wrong? (This is more of a clarification than an issue... has to be something I'm doing wrong, although I've literally copied and pasted the example code)

@cpup22 cpup22 closed this as completed Dec 26, 2016
@dblock
Copy link
Collaborator

dblock commented Dec 27, 2016

@cpup22 What did you do to resolve this? (for the next person)

@cpup22
Copy link
Author

cpup22 commented Dec 27, 2016

There are three entries:

  1. alexaApp.express(app, "/echo/"); --in code
  2. var alexaApp = new alexa.app("skillname"); --in code
  3. https://example.com/echo/skillname --this is configured inside the amazon skill console

I wanted it to be https://example.com/skillname to invoke my skill so I was confused why my setup wasn't working. Then I noticed the "/echo" within the alexa-app code. as soon as I adjusted entry #3 above to include /echo/skillname instead of just /skillname it worked.

@dblock
Copy link
Collaborator

dblock commented Dec 28, 2016

Thanks @cpup22. If you think the documentation can be clearer please do contribute!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants