windkh / node-red-contrib-telegrambot

Telegram bot nodes for node-red.
Other
262 stars 116 forks source link

Possible EventEmitter memory leak detected. #198

Closed jodelkoenig closed 3 years ago

jodelkoenig commented 3 years ago

I am running latest 2.0.5 node-red docker with this telegrambot. Node-Red logs indicate this during start:

"(node:55) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 status listeners added to [TelegramBotNode]. Use emitter.setMaxListeners() to increase limit"

Any thoughts/ideas?

Thanks for this great tool!!!

windkh commented 3 years ago

@jodelkoenig I saw this yesterday, too when having more than 11 nodes in one flow. The reason is that all nodes in the flow connect to the one and only configuration node that maintains the server connection. I will try to call setMaxListeners somewhere in the code to get rid of that.....

jodelkoenig commented 3 years ago

Cool. Thanks!

windkh commented 3 years ago

next version fixes this