Closed rwillett closed 7 years ago
After a lot of reading it appears that we need to add more code in. We had thought the examples on the readme.md were sufficient, but after loading in index.js we now have a server.js which returns something, not got intents working yet, but its early days.
The line "instance.stop()" ends your server immediately after it begins.
Also, node is on 8.1 :-)
Ahhhhhhhhhh........ We misunderstood what that line does.
Node on Ubuntu 16.04 is still down at v4.2.6. Ubuntu is a complete PITA when it comes to versions. I know they want a standard version for Long Term Support but it is a long way out of date, mind you, V4.6.2 does work for us.
We're going to have another crack at this later tonight out of working hours as we have other things to do. We do have one other question:
https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/developing-an-alexa-skill-as-a-web-service#Checking%20the%20Signature%20of%20the%20Request
or do we need to do something like
https://www.npmjs.com/package/alexa-verifier
Thanks very much
Rob
When you set debug false and verify true it should handle everything.
On Jul 17, 2017 12:25 PM, "Rob Willett" notifications@github.com wrote:
Ahhhhhhhhhh........ We misunderstood what that line does.
Node on Ubuntu 16.04 is still down at v4.2.6. Ubuntu is a complete PITA when it comes to versions. I know they want a standard version for Long Term Support but it is a long way out of date, mind you, V4.6.2 does work for us.
We're going to have another crack at this later tonight out of working hours as we have other things to do. We do have one other question:
- Does this server handle all the security interactions from Amazon about verifying that Amazon is making the call, e.g.
https://developer.amazon.com/public/solutions/alexa/alexa- skills-kit/docs/developing-an-alexa-skill-as-a-web-service# Checking%20the%20Signature%20of%20the%20Request
or do we need to do something like
https://www.npmjs.com/package/alexa-verifier
Thanks very much
Rob
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/alexa-js/alexa-app-server/issues/94#issuecomment-315797908, or mute the thread https://github.com/notifications/unsubscribe-auth/ABYnR7FMXtI212-QoSBr5xN3M0-anXgCks5sO4mygaJpZM4OZYBH .
Thanks. We have a server running, we will keep reading and learning.
We'll get it working with Paw and the graduate to AWS.
Much appreciate the support
Rob
Hi,
Thanks for the framework, we're trying to get the example working on our own Ubuntu 16.04 server and are struggling.
Our test environment is ubuntu 16.04, we've patched it so it has all the current updates.
We've taken the code examples from this website and basically copied them to the same directory structure. We have some simple skills working under Amazon but we want to host the skills server ourselves as we need to query a large database and we want to know how to do it. We figure we'll start small and incrementally build.
We have created the sample server.js, the simple hello world app, we've added in a genuine and up to date wildcard certificate from RapidSSL. We have also added in the other files as needed so that our directory resembles the example structure.
We then try to start the server up by typing
but there's no server actually listening on either port 443 or port 8080.
We use nodejs for another project that sits on port 4001 so we know that it can work, but we're not experts in nodejs.
We can't see any errors, we've turned on debugging in the server.js file
The app itself is pretty simple
Our version of node seems up to date
We have read the docs but we can't find a single instance of a command line invocation of server.js. We only want to get it working once and we'll probably speed along, but sadly we seem to be stuck. I suspect we're being dumb, but after looking at this for the last four hours we're asking for help. At the moment, not making a connection is the problem. Thanks
Rob