Announcement: The Alexa Skills Community Is Moving To Stack Overflow

For improved usability and experience, Alexa skills related forum support will be transitioned to Stack Overflow. Effective January 10, 2024, the Amazon Developer Forums will no longer be available. For continued Alexa skills support you can reach out to us on Stack Overflow or via Contact Us.

question

Pk Shiu avatar image
Pk Shiu asked

problem connecting, to a self hosted django server, testing via ngrok

I am moving from lambda to try to develop a self hosted skill. I have an end point setup running locally on my Mac but exposed via ngrok (a tunneling tool) to a public accessible https connection. When I try to connect using my Echo, I am getting the generic "A connection could not be established to Resource ..." error in the echo.amazon.com / home page. The end point works if I hit it from a browser or curl. Also I can see that there are no http attempt. I have my skill setup to use a https endpoint in the "My development endpoint is a subdomain of a domain that has a wildcard certificate from a certificate authority" mode. Any pointer is much appreciated. P.K.
alexa skills kitsubmission testing certification
10 |5000

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

Scott Nottingham avatar image
Scott Nottingham answered
I am having the same issue. Have you gotten any further? I don't even see any attempt at connecting to my web server by amazon, but like you, curl works just fine.
10 |5000

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

Chrisinator avatar image
Chrisinator answered
I had issues with nonstandard ports. Is this all on 443?
10 |5000

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

Scott Nottingham avatar image
Scott Nottingham answered
OK, my problem ended up being certificate issue. I thought I had an Amazon Approved Certificate b/c I saw StartCom in the list of trusted certs ( https://wiki.mozilla.org/CA:IncludedCAs); but, apparently the free tier that I have is not included. I generated a self-signed cert and now it works.
10 |5000

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

Pk Shiu avatar image
Pk Shiu answered
I was told that actually ASK does not care about certificate. Maybe that is not try anymore. I deploy this heroku and it works on heroku. It is just much slower since I have to keep pushing to heroku via git to release new code. P.K.
10 |5000

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