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
939 stars 191 forks source link

Image node does not accept binary buffer from HTTP node #210

Closed merlinmb closed 6 years ago

merlinmb commented 6 years ago

Hi - first up, thanks for an awesome system! I'm struggling to link together the http node (node red) directly to the chatbot image node. returns an error: "Error: EISDIR: illegal operation on a directory, open '/tmp/'"

Seems the image node requires a filename and cannot handle a binary buffer as direct input? image

guidone commented 6 years ago

Hi @merlinmb, thanks, it should hadle it, I'll check in the next hours

guidone commented 6 years ago

Hi @merlinmb I did a quick test and it works for me, can I see the configuration of the "http request" node? In particular are you returning the content of the http request as a buffer and not a string (the default is string)

merlinmb commented 6 years ago

that's odd, i have the http node configured to binary buffer - perhaps it has to do with the chatbot data store (mine is set to none/memory)?

image

guidone commented 6 years ago

Ok, should have anything to do with the context, I'll try with another example Update: I've replicated the error, I'll fix shortly

guidone commented 6 years ago

@merlinmb ok fixed in node-red-contrib-chatbot@0.12.7

merlinmb commented 6 years ago

thanks for the quick response - updating now.

merlinmb commented 6 years ago

Thank you, @0.2.17 works nicely. Good thinking with the unique temp filename, I simultaneously upload images to slack.

guidone commented 6 years ago

🖖

Thanks for the feedback