NGRP / node-red-contrib-viseo

Node-RED nodes OpenSourced by VISEO Technologies
Apache License 2.0
227 stars 83 forks source link

Documentation update to connect to MS Chat bot #63

Closed awilu closed 6 years ago

awilu commented 6 years ago

Get an "envoi impossible" from the MS test window but all my settings have been made as expected by the wiki.

JpEncausse commented 6 years ago

Well it's a glitch,

In the BotBuilder node you should leave it as is, it will bind the server to the Node-RED port (1880). Otherwise it will start a dedicated restify server (we will remove that feature because ExpressJS works very well)

Then instead of setting the 1880 in the Bot Framework you should setup NGinx and perform a redirect from 80 to 443 to 1880 so you will have a clean install

awilu commented 6 years ago

Thanks for your quick answer. But I already setup my nginx with the default value that you provide (with the redirection chain) in the wiki.

When I do https://my_domain.com/api/v1/messages I have the "Hello I'm a Bot !" answer in my web browser. But still unable to have the test message working.

JpEncausse commented 6 years ago

Ok so, https://my_domain.com/api/v1/messages that mean the route is OK

=> Save and PM2 Restart the server (to be sure)

Test with the WebChat in MSBotFramework you should at least receive a log in the console and if you set a debug node you should see the JSON from the botbuilder message

If OK, create a Facebook Messenger Channel (App & page), etc ...

awilu commented 6 years ago

It's all done. In my webchat in MSbotframewirk, I still have the same message + "There was an error sending this message to your bot: HTTP status code GatewayTimeout" on the connector's dashboard. Nothing in my debug screen from Viseo

JpEncausse commented 6 years ago

Hum, that's weird, it's like the bot can't reach your server. i'll try to make a step-by-step video this week-end

awilu commented 6 years ago

Bug closed. Work after a reboot (viseo side) and reconnection on MSFT side. Thanks for your help