Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

机器人接受消息的时候会再次接收一条旧的消息 #1049

Open
Miuzarte opened this issue Sep 11, 2021 · 5 comments
Open

机器人接受消息的时候会再次接收一条旧的消息 #1049

Miuzarte opened this issue Sep 11, 2021 · 5 comments
Labels
bug? The issue author think this is a bug

Comments

@Miuzarte
Copy link

Miuzarte commented Sep 11, 2021

环境信息

go-cqhttp版本: 1.0.0 beta6
运行环境: ubuntu 20.04 x64
连接方式: 正向ws
使用协议: iPad

在最新的release版本中能否复现
能(不完全能 这bug是第二次见)

bug内容

机器人接受消息的时候会再次接收一条旧的消息

+ [2021-09-11 22:18:11] [INFO]: 收到好友 name(qq) 的消息: [CQ:image,file=7048c90d75262ce83d8a2a7c398b6614.image] (-1687063612) 
[2021-09-11 22:18:17] [INFO]: 发送好友 qq(qq)  的消息:  ... (1681566611) 
+ [2021-09-12 00:24:40] [INFO]: 收到好友 name(qq) 的消息: [CQ:image,file=7048c90d75262ce83d8a2a7c398b6614.image] (-1687063612) 
[2021-09-12 00:24:40] [INFO]: 收到好友 name(qq) 的消息: [CQ:image,file=31583ceb58fbbb6b2e731c0d7b9c936a.image] (1572990536) 
[2021-09-12 00:24:40] [INFO]: 发送好友 qq(qq)  的消息:  ... (322804485) 
[2021-09-12 00:24:47] [INFO]: 发送好友 qq(qq)  的消息:  ... (1945768672) 
[2021-09-12 00:24:47] [INFO]: 发送好友 qq(qq)  的消息:  ... (83698294) 
[2021-09-12 00:24:58] [INFO]: 发送好友 qq(qq)  的消息:  ... (-1644923956) 
[2021-09-12 00:24:59] [INFO]: 发送好友 qq(qq)  的消息:  ... (-353156262) 

复现方法

偶然触发

@Miuzarte Miuzarte added the bug? The issue author think this is a bug label Sep 11, 2021
@Miuzarte
Copy link
Author

以及 发送消息的时候日志里不显示昵称应该是bug吧?

@bin-tenkuu
Copy link

好像确实有, 我昨天重启bot时候触发过一次, 但是依然不知道怎么复现

@bin-tenkuu
Copy link

好像只有私聊会触发,
我这边是发送了 2 句之后, 过了 1 个多小时又突然接受到了消息
以下是 log:

+ [2021-09-14 13:16:24] [INFO]: 收到好友 bin(2938137849) 的消息: .dall1 (-616649908)
  [2021-09-14 13:16:24] [INFO]: 发送好友 2938137849(2938137849)  的消息: [{"type":" ... (-581338690)
+ [2021-09-14 13:16:26] [INFO]: 收到好友 bin(2938137849) 的消息: .dall1 (-985113068)
  [2021-09-14 13:16:26] [INFO]: 发送好友 2938137849(2938137849)  的消息: [{"type":" ... (1146103812)

以下是重复接受的 log: (这两条实际上是上面的消息)

+ [2021-09-14 14:33:15] [INFO]: 收到好友 bin(2938137849) 的消息: .dall1 (-616649908)
+ [2021-09-14 14:33:15] [INFO]: 收到好友 bin(2938137849) 的消息: .dall1 (-985113068)
  [2021-09-14 14:33:15] [INFO]: 发送好友 2938137849(2938137849)  的消息: [{"type":" ... (861345938)
  [2021-09-14 14:33:15] [INFO]: 发送好友 2938137849(2938137849)  的消息: [{"type":" ... (-1389130447)

@zhanbao2000
Copy link

可以参考 #761 ,开日志看一下是不是机器人先收到了request然后再收到了重复的私聊消息

@clacknya
Copy link

最近同样出现过,没注意是否接收到 request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug? The issue author think this is a bug
Projects
None yet
Development

No branches or pull requests

4 participants