windkh / node-red-contrib-telegrambot

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

NodeRed in HomeAssistant shows "Error: cannot enable cancellation after promises are in use (line:9)" #254

Closed islaeh closed 2 years ago

islaeh commented 2 years ago

Current release 11.3.0 is showing an error on install and does not work: "Error: cannot enable cancellation after promises are in use (line:9)"

Message during install is

2022-06-20T19:59:04.412Z Installieren : node-red-contrib-telegrambot 11.3.0

2022-06-20T19:59:05.839Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-telegrambot@11.3.0
2022-06-20T19:59:10.651Z [err] npm
2022-06-20T19:59:10.654Z [err]  WARN
2022-06-20T19:59:10.655Z [err]  config production Use `--omit=dev` instead.
2022-06-20T19:59:28.372Z [err] npm
2022-06-20T19:59:28.373Z [err]  WARN deprecated request-promise@4.2.6: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
2022-06-20T19:59:38.841Z [out] 
2022-06-20T19:59:38.841Z [out] added 58 packages in 29s
2022-06-20T19:59:38.921Z rc=0

In NodeRed the first item (telegram bot) is deactivated and in grey, all other entries are actiated and in blue. Due to the missing first item, the integration can not be used.

telegram bot
telegram receiver
telegram command
telegram event
telegram sender
telegram reply
windkh commented 2 years ago

Hm at line 9 Bluebird promises are configured: cancellations are enabled. No idea where this could come from.

islaeh commented 2 years ago

I will drop out here for now, I changed to the other integration for NodeRed (node-red-contrib-telegrambot-home, Version 0.7.0). This did work without any issue. I will watch the progress here and may come back at a later time. Thx for the help so far.

windkh commented 2 years ago

ok