juzibot / donut-tester

40 stars 4 forks source link

Send message fail: dropped silently #89

Open huan opened 3 years ago

huan commented 3 years ago

HA Wechaty will send the message ding to the official account chatieio period to make sure it's alive.

However, our donut (osschat) often experienced can not receive the expected dong when it has sent a ding message.

After investigated the system, I found that the following log message and the screenshot show that, the messageSend() has not sent the message at all: it failed silently.

00:02:35 VERB Contact say(ding)
00:02:35 VERB PuppetService messageSend(gh_051c89260e5d, ding)
00:02:42 VERB PuppetService onGrpcStreamEvent({type:EVENT_TYPE_HEARTBEAT(1), payload:"{"data":"[object Object]"}"})
00:02:58 VERB Contact say(ding)
00:02:58 VERB PuppetService messageSend(gh_051c89260e5d, ding)
00:03:07 VERB Wechaty reset() because ha-wechaty

image

The log shows that the bot sends two dings but has not got any response. The screenshot shows that it has no sent message and thus no received message at all (the messages showed are all outdated messages)