go-cqhttp
go-cqhttp copied to clipboard
[Bug]: 发送群聊消息失败,私聊可以。retcode=100
请确保您已阅读以上注意事项,并勾选下方的确认框。
- [X] 我已经仔细阅读上述教程和 "提问前需知"
- [X] 我已经使用 dev分支版本 测试过,问题依旧存在。
- [X] 我已经在 Issue Tracker 中找过我要提出的问题,没有找到相同问题的ISSUE。
- [X] 我已知晓并同意,此处仅用于汇报程序中存在的问题。若这个 Issue 是关于其他非程序本身问题,则我的 Issue 可能会被无条件自动关闭或/并锁定。(这些问题应当在 Discussion 板块提出。)
go-cqhttp 版本
V1.1.0
运行环境
Windows (32/x84)
运行架构
AMD64
连接方式
WebSocket (反向)
使用协议
2 | Android Watch
重现步骤
在出现bug前机器人大约向一个私聊消息发送40次消息,群聊大约发送五次左右。(有挂机七天) Python aiocqhttp端代码:await bot.send(event, message="[CQ:at,qq=%s,]\n你**" % event.user_id)
期望的结果是什么?
正常发送群聊消息。
实际的结果是什么?
[2023-07-11 01:35:24] [WARNING]: 群消息发送失败: 账号可能被风控. [2023-07-11 01:35:28] [WARNING]: 群消息发送失败: 账号可能被风控.
简单的复现代码/链接(可选)
await bot.send(event, message="[CQ:at,qq=%s,]\n你**" % event.user_id)
日志记录(可选)
[2023-07-11 01:50:23] [INFO]: 当前版本:v1.1.0
[2023-07-11 01:50:23] [WARNING]: 已开启Debug模式.
[2023-07-11 01:50:23] [INFO]: 将使用 device.json 内的设备信息运行Bot.
[2023-07-11 01:50:23] [WARNING]: 警告: 未配置签名服务器, 这可能会导致登录 45 错误码或发送消息被风控
[2023-07-11 01:50:23] [INFO]: Bot将在5秒后登录并开始信息处理, 按 Ctrl+C 取消.
[2023-07-11 01:50:28] [INFO]: 开始尝试登录并同步消息...
[2023-07-11 01:50:28] [INFO]: 使用协议: Android Watch 2.0.8
[2023-07-11 01:50:29] [INFO]: Protocol -> connect to server: [::ffff:121.229.94.199]:80
[2023-07-11 01:50:29] [DEBUG]: Protocol -> rev pkt: wtlogin.exchange_emp seq: 38809
[2023-07-11 01:50:29] [WARNING]: Protocol -> device lock is disable. http api may fail.
[2023-07-11 01:50:29] [DEBUG]: Protocol -> rev pkt: StatSvc.register seq: 38810
[2023-07-11 01:50:30] [DEBUG]: Protocol -> rev pkt: ProfileService.Pb.ReqSystemMsgNew.Group seq: 38811
[2023-07-11 01:50:30] [DEBUG]: Protocol -> rev pkt: ProfileService.Pb.ReqSystemMsgNew.Group seq: 38812
[2023-07-11 01:50:30] [DEBUG]: Protocol -> rev pkt: RegPrxySvc.GetMsgV2 seq: -1291085996
[2023-07-11 01:50:30] [DEBUG]: Protocol -> rev pkt: RegPrxySvc.getOffMsg seq: 38813
[2023-07-11 01:50:30] [DEBUG]: Protocol -> rev pkt: RegPrxySvc.PushParam seq: -1291085995
[2023-07-11 01:50:30] [DEBUG]: Protocol -> rev pkt: RegPrxySvc.PbGetMsg seq: -1291085994
[2023-07-11 01:50:30] [DEBUG]: Protocol -> rev pkt: RegPrxySvc.NoticeEnd seq: -1291085993
[2023-07-11 01:50:30] [DEBUG]: Protocol -> rev pkt: StatSvc.GetDevLoginInfo seq: 38815
[2023-07-11 01:50:30] [DEBUG]: Protocol -> rev pkt: MessageSvc.PbGetMsg seq: 38814
[2023-07-11 01:50:30] [DEBUG]: Protocol -> c2c msg filtered by time. lastMsgTime: 1689010190 msgTime: 1685778154
[2023-07-11 01:50:30] [DEBUG]: Protocol -> rev pkt: MessageSvc.PbDeleteMsg seq: 38816
[2023-07-11 01:50:31] [DEBUG]: Protocol -> rev pkt: trpc.group_pro.synclogic.SyncLogic.SyncFirstView seq: 38817
[2023-07-11 01:50:31] [DEBUG]: Protocol -> rev pkt: trpc.group_pro.synclogic.SyncLogic.PushFirstView seq: -1291085596
[2023-07-11 01:50:31] [DEBUG]: Protocol -> rev pkt: trpc.group_pro.synclogic.SyncLogic.PushFirstView seq: -1291085596
[2023-07-11 01:50:31] [DEBUG]: Protocol -> rev pkt: OidbSvcTrpcTcp.0xfc9_1 seq: 38818
[2023-07-11 01:50:31] [INFO]: 正在检查协议更新...
[2023-07-11 01:50:31] [INFO]: 登录成功 欢迎使用: 小黑子机器人
[2023-07-11 01:50:31] [INFO]: 开始加载好友列表...
[2023-07-11 01:50:31] [DEBUG]: Protocol -> rev pkt: friendlist.getFriendGroupList seq: 38819
[2023-07-11 01:50:31] [INFO]: 共加载 4 个好友.
[2023-07-11 01:50:31] [INFO]: 开始加载群列表...
[2023-07-11 01:50:31] [DEBUG]: Protocol -> rev pkt: friendlist.GetTroopListReqV2 seq: 38820
[2023-07-11 01:50:31] [DEBUG]: Protocol -> rev pkt: friendlist.GetTroopMemberListReq seq: 38821
[2023-07-11 01:50:31] [DEBUG]: Protocol -> rev pkt: friendlist.GetTroopMemberListReq seq: 38823
[2023-07-11 01:50:31] [DEBUG]: Protocol -> rev pkt: friendlist.GetTroopMemberListReq seq: 38822
[2023-07-11 01:50:31] [INFO]: 共加载 3 个群.
[2023-07-11 01:50:31] [DEBUG]: Protocol -> rev pkt: StatSvc.SetStatusFromClient seq: 38824
[2023-07-11 01:50:31] [INFO]: 资源初始化完成, 开始处理信息.
[2023-07-11 01:50:31] [INFO]: アトリは、高性能ですから!
[2023-07-11 01:50:31] [INFO]: 开始尝试连接到反向WebSocket Universal服务器: ws://127.0.0.1:5202/ws/
[2023-07-11 01:50:31] [INFO]: 正在检查更新.
[2023-07-11 01:50:31] [INFO]: CQ HTTP 服务器已启动: [::]:5201
[2023-07-11 01:50:31] [INFO]: 已连接到反向WebSocket Universal服务器 ws://127.0.0.1:5202/ws/
[2023-07-11 01:50:32] [DEBUG]: Protocol -> rev pkt: ConfigPushSvc.PushReq seq: -355964243
[2023-07-11 01:50:32] [DEBUG]: Protocol -> got new server addr: 183.47.102.193 location: sz
[2023-07-11 01:50:32] [DEBUG]: Protocol -> got new server addr: 121.229.94.224 location: sh
[2023-07-11 01:50:32] [DEBUG]: Protocol -> got new server addr: 183.47.102.193 location: sz
[2023-07-11 01:50:32] [DEBUG]: Protocol -> got new server addr: 49.7.253.65 location: tj
[2023-07-11 01:50:32] [DEBUG]: Protocol -> got new server addr: 121.229.94.199 location: sh
[2023-07-11 01:50:32] [DEBUG]: Protocol -> got new server addr: 14.22.9.53 location: sz
[2023-07-11 01:50:32] [DEBUG]: Protocol -> got new server addr: 42.81.192.158 location: tj
[2023-07-11 01:50:32] [DEBUG]: Protocol -> got new server addr: 180.109.192.57 location: sh
[2023-07-11 01:50:32] [DEBUG]: Protocol -> got new server addr: 49.7.253.58 location: tj
[2023-07-11 01:50:32] [INFO]: 收到服务器地址更新通知, 将在下一次重连时应用.
[2023-07-11 01:50:32] [DEBUG]: Protocol -> rev pkt: ConfigPushSvc.PushReq seq: -355964073
[2023-07-11 01:50:32] [DEBUG]: Protocol -> got file storage svc push.
[2023-07-11 01:50:32] [INFO]: 检查更新完成. 当前已运行最新版本.
[2023-07-11 01:50:32] [INFO]: 开始诊断网络情况
[2023-07-11 01:50:32] [DEBUG]: Protocol -> rev pkt: ConfigPushSvc.PushDomain seq: -355964071
[2023-07-11 01:50:32] [DEBUG]: Protocol -> Unhandled Command: ConfigPushSvc.PushDomain
Seq: 27481
This message can be ignored.
[2023-07-11 01:50:35] [DEBUG]: 聊天服务器连接延迟: 23ms
[2023-07-11 01:50:35] [DEBUG]: 聊天服务器丢包率: 0%
[2023-07-11 01:50:35] [DEBUG]: 长消息服务器连接延迟: 26ms
[2023-07-11 01:50:35] [DEBUG]: 长消息服务器响应延迟: 120ms
[2023-07-11 01:50:35] [DEBUG]: 媒体服务器连接延迟: 31ms
[2023-07-11 01:50:35] [DEBUG]: 媒体服务器丢包率: 0%
[2023-07-11 01:50:35] [INFO]: 网络诊断完成. 未发现问题
[2023-07-11 01:50:35] [DEBUG]: Protocol -> rev pkt: OnlinePush.PbPushGroupMsg seq: -1664669307
[2023-07-11 01:50:35] [INFO]: 收到群 QQ团队机器人测试(810797143) 内 QQ团队(2) 的消息: 1 (1686889310)
[2023-07-11 01:50:35] [DEBUG]: 向反向WS Universal服务器推送Event: {"post_type":"message","message_type":"group","time":1689011435,"self_id":2810027575,"sub_type":"normal","anonymous":null,"group_id":810797143,"sender":{"age":0,"area":"","card":"","level":"","nickname":"QQ团队","role":"owner","sex":"unknown","title":"","user_id":2759372655},"user_id":2759372655,"message_id":1686889310,"font":0,"message":"1","message_seq":1400,"raw_message":"1"}
[2023-07-11 01:50:51] [DEBUG]: HTTPServer接收到API调用: set_group_ban
[2023-07-11 01:50:51] [DEBUG]: WS接收到API调用: send_msg 参数: {"message_type": "group", "user_id": ****, "group_id": 8********, "message": [{"type": "at", "data": {"qq": "******a"}}, {"type": "text", "data": {"text": "\n\u46"}}]}
[2023-07-11 01:50:52] [DEBUG]: Protocol -> rev pkt: MessageSvc.PbSendMsg seq: 38832
[2023-07-11 01:50:52] [DEBUG]: Protocol -> rev pkt: OnlinePush.PbPushGroupMsg seq: -1720134606
[2023-07-11 01:50:52] [INFO]: 收到群 机器人测试(81****d**3) 内 QQ(2****) 的消息: 2 (492264442)
[2023-07-11 01:50:52] [DEBUG]: 向反向WS Universal服务器推送Event: {"post_type":"message","message_type":"group","time":1689011451,"self_id":2*****,"sub_type":"normal","group_id":810797143,"raw_message":"2","sender":{"age":0,"area":"","card":"","level":"","nickname":"QQ团队","role":"owner","sex":"unknown","title":"","user_id":2*****},"user_id":****,"message_id":492264442,"font":0,"message":"2","message_seq":1409,"anonymous":null}
[2023-07-11 01:50:52] [DEBUG]: HTTPServer接收到API调用: set_group_ban
[2023-07-11 01:50:52] [DEBUG]: WS接收到API调用: send_msg 参数: {"message_type": "group", "group_id": ***, "user_id": 2*****, "message": [{"type": "at", "data": {"qq": "2*****"}}, {"type": "text", "data": {"text": "\n\u4f60\u5df2\u8fdd\u89c4"}}]}
[2023-07-11 01:50:52] [DEBUG]: Protocol -> rev pkt: MessageSvc.PbSendMsg seq: 38833
[2023-07-11 01:50:56] [DEBUG]: 向反向WS Universal服务器推送Event: {"post_type":"meta_event","meta_event_type":"heartbeat","time":1689011456,"self_id":2**,"status":{"app_enabled":true,"app_good":true,"app_initialized":true,"good":true,"online":true,"plugins_good":null,"stat":{"packet_received":43,"packet_sent":25,"packet_lost":0,"message_received":10,"message_sent":0,"disconnect_times":0,"lost_times":0,"last_message_time":1689011452}},"interval":5000}
[2023-07-11 01:50:56] [DEBUG]: Protocol -> rev pkt: OidbSvc.0x88d_0 seq: 38834
[2023-07-11 01:50:57] [DEBUG]: Protocol -> rev pkt: MessageSvc.PbGetGroupMsg seq: 38835
[2023-07-11 01:50:57] [WARNING]: 群消息发送失败: 账号可能被风控.
[2023-07-11 01:50:57] [DEBUG]: Protocol -> rev pkt: OidbSvc.0x88d_0 seq: 38836
[2023-07-11 01:50:57] [DEBUG]: Protocol -> rev pkt: MessageSvc.PbGetGroupMsg seq: 38837
[2023-07-11 01:50:57] [WARNING]: 群消息发送失败: 账号可能被风控.
[2023-07-11 01:51:00] [DEBUG]: Protocol -> rev pkt: Heartbeat.Alive seq: 38838
[2023-07-11 01:51:01] [DEBUG]: 向反向WS Universal服务器推送Event: {"post_type":"meta_event","meta_event_type":"heartbeat","time":1689011461,"self_id":2***,"status":{"app_enabled":true,"app_good":true,"app_initialized":true,"good":true,"online":true,"plugins_good":null,"stat":{"packet_received":48,"packet_sent":30,"packet_lost":0,"message_received":10,"message_sent":0,"disconnect_times":0,"lost_times":0,"last_message_time":1689011452}},"interval":5000}
[2023-07-11 01:51:06] [DEBUG]: 向反向WS Universal服务器推送Event: {"post_type":"meta_event","meta_event_type":"heartbeat","time":1689011466,"self_id":2810027575,"interval":5000,"status":{"app_enabled":true,"app_good":true,"app_initialized":true,"good":true,"online":true,"plugins_good":null,"stat":{"packet_received":48,"packet_sent":30,"packet_lost":0,"message_received":10,"message_sent":0,"disconnect_times":0,"lost_times":0,"last_message_time":1689011452}}}
[2023-07-11 01:51:11] [DEBUG]: 向反向WS Universal服务器推送Event: {"post_type":"meta_event","meta_event_type":"heartbeat","time":1689011471,"self_id":2***,"status":{"app_enabled":true,"app_good":true,"app_initialized":true,"good":true,"online":true,"plugins_good":null,"stat":{"packet_received":48,"packet_sent":30,"packet_lost":0,"message_received":10,"message_sent":0,"disconnect_times":0,"lost_times":0,"last_message_time":1689011452}},"interval":5000}
[2023-07-11 01:51:16] [DEBUG]: 向反向WS Universal服务器推送Event: {"post_type":"meta_event","meta_event_type":"heartbeat","time":1689011476,"self_id":2****5,"status":{"app_enabled":true,"app_good":true,"app_initialized":true,"good":true,"online":true,"plugins_good":null,"stat":{"packet_received":48,"packet_sent":30,"packet_lost":0,"message_received":10,"message_sent":0,"disconnect_times":0,"lost_times":0,"last_message_time":1689011452}},"interval":5000}
[2023-07-11 01:51:21] [DEBUG]: 向反向WS Universal服务器推送Event: {"post_type":"meta_event","meta_event_type":"heartbeat","time":1689011481,"self_id":2***,"status":{"app_enabled":true,"app_good":true,"app_initialized":true,"good":true,"online":true,"plugins_good":null,"stat":{"packet_received":48,"packet_sent":30,"packet_lost":0,"message_received":10,"message_sent":0,"disconnect_times":0,"lost_times":0,"last_message_time":169*1**122**452}},"interval":5000}
补充说明(可选)
Python代码端也同时异常接收不到加好友请求事件。 Python端报错如下: aiocqhttp.exceptions.ActionFailed: <ActionFailed data=None, echo={'seq': 2}, message='send group message failed: blocked by server', msg='SEND_MSG_API_ERROR', retcode=100, status='failed', wording='send group message failed: blocked by server'>
echo={'seq': 2}, message='send group message failed: blocked by server', msg='SEND_MSG_API_ERROR', retcode=100, status='failed', wording='send group message failed: blocked by server'
我也遇到了
你前提环境和我一样不?
HDB @.***
------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年7月12日(星期三) 下午3:12 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [Mrs4s/go-cqhttp] [Bug]: 发送群聊消息失败,私聊可以。retcode=100 (Issue #2284)
我也遇到了
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
换成send_msg和群聊函数,一样不行
一样,私聊没问题,群聊就有问题,每天可以重置发送次数,好像有限额
一样,私聊没问题,群聊就有问题,每天可以重置发送次数,好像有限额
我每天早上六点和晚上八点给自己发新闻还有群聊都没问题,一到正常发信息就经常bug
《[WARNING]: 警告: 未配置签名服务器, 这可能会导致登录 45 错误码或发送消息被风控》 风控,没办法:( (**tx) 尝试最新的dev分支构建并搭建个 https://github.com/fuqiuluo/unidbg-fetch-qsign 并在go-cqhttp的config.yml里配置 sign-server 和 key ?
注: 第一次用unidbg-fetch-qsign有可能导致账号被冻结... :(
换协议1解决
可是现在好像只有手表能登录
HDB @.***
------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年7月22日(星期六) 下午3:13 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [Mrs4s/go-cqhttp] [Bug]: 发送群聊消息失败,私聊可以。retcode=100 (Issue #2284)
换协议1解决
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
一般来说,手表扫码登录获取token,保持device.json不变,可以使用协议1验证码登录,大概率登录成功并无风控
从 Windows 版邮件https://go.microsoft.com/fwlink/?LinkId=550986发送
发件人: @.> 发送时间: 2023年7月23日 0:12 收件人: @.> 抄送: @.>; @.> 主题: Re: [Mrs4s/go-cqhttp] [Bug]: 发送群聊消息失败,私聊可以。retcode=100 (Issue #2284)
可是现在好像只有手表能登录
HDB @.***
------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年7月22日(星期六) 下午3:13 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [Mrs4s/go-cqhttp] [Bug]: 发送群聊消息失败,私聊可以。retcode=100 (Issue #2284)
换协议1解决
― Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
― Reply to this email directly, view it on GitHubhttps://github.com/Mrs4s/go-cqhttp/issues/2284#issuecomment-1646620783, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AY6EG4TL7EF65GAKXVDYKKDXRP3YHANCNFSM6AAAAAA2E4FAPM. You are receiving this because you commented.Message ID: @.***>
我不行,只能用手表,改天再研究一下
HDB @.***
------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年7月23日(星期天) 晚上6:12 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [Mrs4s/go-cqhttp] [Bug]: 发送群聊消息失败,私聊可以。retcode=100 (Issue #2284)
一般来说,手表扫码登录获取token,保持device.json不变,可以使用协议1验证码登录,大概率登录成功并无风控
从 Windows 版邮件<" rel="noopener" target="_blank">https://go.microsoft.com/fwlink/?LinkId=550986>;发送
发件人: @.> 发送时间: 2023年7月23日 0:12 收件人: @.> 抄送: @.>; @.> 主题: Re: [Mrs4s/go-cqhttp] [Bug]: 发送群聊消息失败,私聊可以。retcode=100 (Issue #2284)
可是现在好像只有手表能登录
HDB @.***
------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年7月22日(星期六) 下午3:13 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [Mrs4s/go-cqhttp] [Bug]: 发送群聊消息失败,私聊可以。retcode=100 (Issue #2284)
换协议1解决
― Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
― Reply to this email directly, view it on GitHub<" rel="noopener" target="_blank">https://github.com/Mrs4s/go-cqhttp/issues/2284#issuecomment-1646620783>;, or unsubscribe<" rel="noopener" target="_blank">https://github.com/notifications/unsubscribe-auth/AY6EG4TL7EF65GAKXVDYKKDXRP3YHANCNFSM6AAAAAA2E4FAPM>;. You are receiving this because you commented.Message ID: @.***>
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
我不行,只能用手表,改天再研究一下
HDB @.***
------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年7月23日(星期天) 晚上6:12 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [Mrs4s/go-cqhttp] [Bug]: 发送群聊消息失败,私聊可以。retcode=100 (Issue #2284)
一般来说,手表扫码登录获取token,保持device.json不变,可以使用协议1验证码登录,大概率登录成功并无风控
从 Windows 版邮件<" rel="noopener" target="_blank">https://go.microsoft.com/fwlink/?LinkId=550986>;发送
发件人: @.> 发送时间: 2023年7月23日 0:12 收件人: @.> 抄送: @.>; @.> 主题: Re: [Mrs4s/go-cqhttp] [Bug]: 发送群聊消息失败,私聊可以。retcode=100 (Issue #2284)
可是现在好像只有手表能登录
HDB @.***
------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年7月22日(星期六) 下午3:13 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [Mrs4s/go-cqhttp] [Bug]: 发送群聊消息失败,私聊可以。retcode=100 (Issue #2284)
换协议1解决
― Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
― Reply to this email directly, view it on GitHub<" rel="noopener" target="_blank">https://github.com/Mrs4s/go-cqhttp/issues/2284#issuecomment-1646620783>;, or unsubscribe<" rel="noopener" target="_blank">https://github.com/notifications/unsubscribe-auth/AY6EG4TL7EF65GAKXVDYKKDXRP3YHANCNFSM6AAAAAA2E4FAPM>;. You are receiving this because you commented.Message ID: @.***>
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
改一下device怎么样,把mirai
改成其他品牌?(大写保持大写),目前我是改成vivo
,协议1正常
请问现在解决了吗,我的bot现在也只能手表协议登录,群聊会被风控私聊没问题
qsign挂了吗,用gocq dev版本
From: ability66 @.> Sent: Friday, September 8, 2023 1:30:17 PM To: Mrs4s/go-cqhttp @.> Cc: molanp @.>; Comment @.> Subject: Re: [Mrs4s/go-cqhttp] [Bug]: 发送群聊消息失败,私聊可以。retcode=100 (Issue #2284)
请问现在解决了吗,我的bot现在也只能手表协议登录,群聊会被风控私聊没问题
― Reply to this email directly, view it on GitHubhttps://github.com/Mrs4s/go-cqhttp/issues/2284#issuecomment-1711097994, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AY6EG4UXOK56UN5MZW6KQYTXZKUOTANCNFSM6AAAAAA2E4FAPM. You are receiving this because you commented.Message ID: @.***>