question

rahulzkuma avatar image
rahulzkuma asked

Cannot connect with the endpoint

Hi All, I am trying to run the java sample code " HelloWorld" but it seems it is having trouble in connecting with the service. I have uploaded the snapshot of the error. https://www.dropbox.com/s/fzv4v6xyesknqnj/Screenshot%20%2837%29.png?dl=0 Kindly help me with this issue. Thanks
alexa skills kitdebugging
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Galactoise avatar image
Galactoise answered
You appear to have two different problems. First, you seem to have some sort of certificate errors. Your stacktrace got clipped at the top in the screenshot, so it's hard to tell exactly what the problem is. I'd recommend actually starting your service to use http while you're getting set up, and then worry about certs later. Second, you seem to have a copy and paste error with your json blob when you were doing the curl. It treated all of the line breaks in the json as different inputs to your cmd window, so the post body you sent was malformed. I don't think it mattered in this case because it failed on the https handshake, but if you had gotten past that step you would've seen a different error. Also, if you're not comfortable with cURL and would prefer a GUI-based way of making the request, I'd recommend getting the POSTman plugin for Chrome.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Nick Gardner avatar image
Nick Gardner answered
I'd probably go a step farther and suggest using lambda if you want an easy to use way to get started with the Skills Kit. If that's not the route you want to go down, I second the error with the certificate and the copy paste error. That is actually one that I ran into on my very first day of using the Skills Kit, before lambda was even released. Easiest I've found is to simply put it in a file and pipe that into the curl command instead of trying to do it inline. You should also be able to disable signature checking in your application to prevent the SSL errors while you are testing locally. Thanks, Nick
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.