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

[bug]:无法处理加群请求,显示FLAG不存在 #1241

Closed
kkksc03 opened this issue Dec 11, 2021 · 9 comments
Closed

[bug]:无法处理加群请求,显示FLAG不存在 #1241

kkksc03 opened this issue Dec 11, 2021 · 9 comments
Labels
bug? The issue author think this is a bug

Comments

@kkksc03
Copy link

kkksc03 commented Dec 11, 2021

环境信息

go-cqhttp版本: v1.0.0-beta8-fix2
运行环境: Ubuntu 20.04
连接方式: HTTP
使用协议: Android Phont

在最新的release版本中能否复现

bug内容

显示flag不存在。将得到的消息flag通过api回调,得到结果如下:

{"data":null,"msg":"FLAG_NOT_FOUND","retcode":100,"status":"failed","wording":"FLAG不存在"}

复现方法

使用脚本,根据上报的信息处理新成员入群申请(set_group_add_request)。使用 v0.9的时候是正常的,只是这几天登陆不上去所以换了v1.0。

将收到上报的加群审核flag,返回审批结果(无论是快速操作还是另外post请求进行审批),都会提示消息不存在。

群的其他管理员可以在QQ上正常收到消息并可以审批成功。

日志

[2021-12-11 10:37:27] [INFO]: 网络诊断完成. 未发现问题 
[2021-12-11 10:37:42] [DEBUG]: Protocol -> rev pkt: MessageSvc.PushNotify seq: 58198 
[2021-12-11 10:37:42] [DEBUG]: Protocol -> rev pkt: ProfileService.Pb.ReqSystemMsgNew.Group seq: 13920 
[2021-12-11 10:37:43] [DEBUG]: Protocol -> rev pkt: ProfileService.Pb.ReqSystemMsgNew.Group seq: 13921 
[2021-12-11 10:37:43] [INFO]: 群 洛*****组(4*****5) 收到来自用户 a*****3(2*****8) 的加群请求. 
[2021-12-11 10:37:44] [DEBUG]: HTTPServer接收到API调用: set_group_add_request 
[2021-12-11 10:37:44] [DEBUG]: Protocol -> rev pkt: ProfileService.Pb.ReqSystemMsgNew.Group seq: 13922 
[2021-12-11 10:37:44] [DEBUG]: Protocol -> rev pkt: ProfileService.Pb.ReqSystemMsgNew.Group seq: 13923 
[2021-12-11 10:37:44] [ERROR]: 处理群系统消息失败: 消息 1639190095763269 不存在. 
[2021-12-11 10:37:44] [DEBUG]: 上报Event数据 {"comment":"问题:请输入加群验证码\n答案:测试","flag":"1639190095763269","group_id":4*****5,"post_type":"request","request_type":"group","self_id":2*****0,"sub_type":"add","time":1639190263,"user_id":2*****8}
 到 http://*****/bot.php 
[2021-12-11 10:37:47] [DEBUG]: Protocol -> rev pkt: Heartbeat.Alive seq: 13924 
[2021-12-11 10:37:49] [DEBUG]: 上报Event数据 {"interval":30000,"meta_event_type":"heartbeat","post_type":"meta_event","self_id":2598336820,"status":{"app_enabled":true,"app_good":true,"app_initialized":true,"good":true,"online":true,"plugins_good":null,"stat":{"packet_received":58,"packet_sent":47,"packet_lost":0,"message_received":0,"message_sent":0,"disconnect_times":0,"lost_times":0,"last_message_time":0}},"time":1639190269}
 到 http://*****/bot.php 

关联Issue

#1016

不知道是否和这个相关

@kkksc03
Copy link
Author

kkksc03 commented Dec 11, 2021

我尝试提交bug模板,结果github显示500,所以不得不交到feature request。不知道是不是issue模板配置有问题。

@wdvxdr1123 wdvxdr1123 added bug? The issue author think this is a bug and removed feature request labels Dec 12, 2021
@luofengxiao
Copy link

更新到新版本就不行了
2021-12-17 11:50:54] [ERROR]: 处理群系统消息失败: 消息 1639712974813283 不存在
FLAG_NOT_FOUND FLAG不存在

@kkksc03
Copy link
Author

kkksc03 commented Dec 17, 2021

更新到新版本就不行了 2021-12-17 11:50:54] [ERROR]: 处理群系统消息失败: 消息 1639712974813283 不存在 FLAG_NOT_FOUND FLAG不存在

主要是,已经尝试了往前面五六个旧版本,它就没法登录,更加用不了。

@Eric-Joker
Copy link

这个bug如何处理呀,是等待修复还是有临时方法?

@Mrs4s Mrs4s closed this as completed in be3b17d Feb 9, 2022
@keuio
Copy link

keuio commented Apr 17, 2023

所以还没解决是吗,也碰到了

@Eric-Joker
Copy link

所以还没解决是吗,也碰到了

我那时候使用的cqhttp的py模块解决的。

@keuio
Copy link

keuio commented Apr 17, 2023

所以还没解决是吗,也碰到了

我那时候使用的cqhttp的py模块解决的。

我也是py,用的啥?我好友请求可以处理,群不行,奇怪了

@keuio
Copy link

keuio commented Apr 17, 2023

所以还没解决是吗,也碰到了

我那时候使用的cqhttp的py模块解决的。

cqhttp SDK吗

@Eric-Joker
Copy link

cqhttp SDK吗

就是一个模块pip install cqhttp
应该是吧,我好久没搞着东西了

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

6 participants
@kkksc03 @luofengxiao @wdvxdr1123 @Eric-Joker @keuio and others