Friday, 21 April 2017

HTTPS POST Request from server to rpi-nodejs thru linksys router

Im trying to connect: Google Home device -> API.AI Webhook -> RPi/nodejs but the API.AI webhook requires an https URL. Ive tried Hurl.it to POST to the http url of my router and setup up port forwarding to make the request reach the rpi and I can see the post come in from the terminal running nodejs which responds appropriately to the request.

But when I change the Hurl.it to https:// url, change the port forwarding of the router to rout 443 requests to the same rpi address and change the .env port for the nodejs app listening on 80 to 443...if I run the POST request, the router log records the https request but the nodejs app does not respond, it just keeps listening on port 443. Here is a link to the app.js:

KylesAppjsCode

How do I figure out why the nodejs server app isnt getting the request or if its receiving it then why is it not responding to the request?



via marciokoko

No comments:

Post a Comment