Repository navigation
Receiver node duplicates #510
|
I'm getting duplicate messages firing out of the receiver node when using webhook. Polling is fine. The messages are identical including the Telegram message id. They do have distinct _msgid, however. This seems to have been introduced in 17.3.1 as the issue is not present in 17.1.3. The issue still exists on 19.0.1. |
Replies: 3 comments 1 reply
|
@AZweimiller thanks for reporting... if you can provide a log or the flow it could be helpful. |
|
Fixed and released in 19.0.2, now on npm. @AZweimiller you can upgrade straight from 19.0.1 — no config change needed, and you no longer have to stay on 17.1.3 or switch to polling. Root cause, in one line: the receiver started twice — once from its own constructor, once from the config node's
The reply node was never affected. Thanks for the clean reproduction and for bisecting it to a version — that is what made this quick to find. |

Fixed and released in 19.0.2, now on npm. @AZweimiller you can upgrade straight from 19.0.1 — no config change needed, and you no longer have to stay on 17.1.3 or switch to polling.
Root cause, in one line: the receiver started twice — once from its own constructor, once from the config node's
startedbroadcast — and both starts attached listeners, so one update was delivered to two handlers. Only webhook was affected, because only the webhook path broadcastsstarted, and it does so from thesetWebhook()promise, which resolves after the receivers have already started themselves. Full explanation in the thread above.start()is now idempotent in the receiver, event and command nodes. Two …