NGRP / node-red-contrib-viseo

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

Problem to receive a response to the web client [bot-framework] #79

Open xiz0r opened 6 years ago

xiz0r commented 6 years ago

Hi, Im trying to do a basic flow with Bot Framework, which receives a message from a web client and send a response in plain text.

The flow that I am using is this: [{"id":"fa15db8f.6c57d8","type":"tab","label":"Flow 1"},{"id":"c7d8c336.c403d","type":"bot","z":"fa15db8f.6c57d8","name":"pwcbot","project":"YourBotId","port":"","x":270,"y":140,"wires":[["3f2da80b.ab4c28","d28bce7b.cf0bc"]]},{"id":"3f2da80b.ab4c28","type":"send-card","z":"fa15db8f.6c57d8","name":"card","nodeid":"SEND_1517346397566","prompt":false,"promptText":"","promptTextType":"msg","speech":false,"speechText":"","delay":0,"sendType":"text","text":"Test!","random":false,"media":"","title":"","subtitle":"","attach":"","carousel":false,"buttons":[],"quicktext":"","quickreplies":[],"btnOutput":false,"quickOutput":false,"repeat":0,"outputs":1,"signintext":"","signintitle":"","signinurl":"","x":470,"y":200,"wires":[[]]},{"id":"d28bce7b.cf0bc","type":"debug","z":"fa15db8f.6c57d8","name":"","active":true,"console":"false","complete":"false","x":470,"y":120,"wires":[]}]

https://drive.google.com/file/d/125eGrVUqOF7KvjN6uHFRFnx4FuEsQ779/view?usp=sharing

Messages from the web client arrive at the server but the response is never sent to the client. Am I doing the flow well?

Thank you

JpEncausse commented 6 years ago

Hi, Sometimes I get this weird behavior

The issues may be caused by the route declaration of BotBuilder node (Express do not allow multiple declaration)

And sometimes Node-RED Debug make side effect on the flow (but I still don't unerstand)

rcarmo commented 5 years ago

I'm having the same issue, but only ever had a single BotBuilder node. Sometimes things break for no apparent reason.