Skylar-Tech / node-red-contrib-matrix-chat

Matrix chat server support for Node-RED
GNU General Public License v3.0
33 stars 10 forks source link

Error sending image message TypeError: callback is not a function #42

Closed hillbicks closed 2 years ago

hillbicks commented 2 years ago

Hey there,

first of all, fantastic addon for nodered! Makes life so much easier. Thank you for making this available

Now, while setting up the addon, I notice that I get error messages in the debug log as stated in the title:

Error sending image message TypeError: callback is not a function

The thing is, the message/image is send though. So I'm not sure what the error message is complaining about. :p

I'm not using the file node from the example though, I'm usin the http request node. The output is set to "a binary buffer".

The flow consists of three nodes:

Like I said, it works, I receive the image, it is just the error in the debug window.

If you need any further information, please let me know :)

skylord123 commented 2 years ago

Looks like matrix-js-sdk updated and broke this.

This will be fixed in the next release, thanks @hillbicks :)

skylord123 commented 2 years ago

@hillbicks Just released 0.4.6 that fixes this. Give it a try and let me know if it works :)

hillbicks commented 2 years ago

Thanks for the quick fix, that solved the issue. Closing.