guidone / node-red-contrib-chatbot

Visually build a full featured chat bot for Telegram, Facebook Messenger, Whatsapp and Slack with Node-RED. Almost no coding skills required.
http://red-bot.io
930 stars 188 forks source link

keep getting an error with slack #27

Closed sebastienjouhans closed 6 years ago

sebastienjouhans commented 7 years ago

Hi I am trying to send a message to slack but I keep getting this error message

TypeError: Cannot read property 'transport' of undefined

I use a an inject node to trgger the message. the payload is set to boolean true. the message node only contains 'hi'. the slack node says it is connected.

not sure what I am missing...

Seb

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/38846474-keep-getting-an-error-with-slack?utm_campaign=plugin&utm_content=tracker%2F39875166&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F39875166&utm_medium=issues&utm_source=github).
guidone commented 7 years ago

Yes Slack node requires a little bit of rework, I'l try to fix it soon

JDHH83 commented 7 years ago

I have a similar issue using Telegram.

goingmad commented 7 years ago

Same here with Telegram as well, tried also your 0.6.20-beta-1, not solved.

Thanks

Andrea

guidone commented 7 years ago

@goingmad are you using a conversation node at the beginning of the flow? Can you send a screenshot of the flow?

goingmad commented 7 years ago

nr-flow nr-error

Thanks for your fast reply Guidone,

the bot seems to be ok, the Telegram out node status is connected. Error shown appears after the manual injection in the flow.

guidone commented 7 years ago

You need a conversation node between the inject node and the message node, I am going to write some additional help on this it's a common mistake and the error message doesn't help.

15 mar 2017, 18:23 +0100, goingmad notifications@github.com, ha scritto:

Thanks for your fast reply Guidone,

the bot seems to be ok, the Telegram out node status is connected. Error shown appears after the manual injection in the flow.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub (https://github.com/guidone/node-red-contrib-chatbot/issues/27#issuecomment-286816374), or mute the thread (https://github.com/notifications/unsubscribe-auth/AAeq90nshlnBjgwV7IwxTk-5hikENO8Bks5rmB6AgaJpZM4Kl8Jo).

goingmad commented 7 years ago

Ok Guidone, perfect result following your instructions below. Just had to dig a bit in order to find the chat id, found useful also the following link: https://www.codementor.io/garethdwyer/building-a-telegram-bot-using-python-part-1-goi5fncay As per me, Telegram Sender now is working properly, thanks a lot!

guidone commented 7 years ago

Ok, to get the chat id you can use the debug node, it shows all relevant information in the console. I'll definitely write more docs about it

Thanks for the feedback

On 15 mar 2017, 21:21 +0100, goingmad notifications@github.com, wrote:

Ok Guidone, perfect result following your instructions below. Just had to dig a bit in order to find the chat id, found useful the following link: https://www.codementor.io/garethdwyer/building-a-telegram-bot-using-python-part-1-goi5fncay As per me, Telegram Sender now is working properly, thanks a lot! — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

guidone commented 6 years ago

The Slack support now works again (I know I am late...)