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

间歇性假死 #15

Open
lxzcl opened this issue Apr 8, 2023 · 1 comment
Open

间歇性假死 #15

lxzcl opened this issue Apr 8, 2023 · 1 comment

Comments

@lxzcl
Copy link

lxzcl commented Apr 8, 2023

机器人假死,一段时间有用一段时间没用
qq输入了命令,但是日志无显示,输入啥都没反应了,假死,下面日志输出时,输入多少次都没反应,但是过一两分钟又有用了
`[2023-04-08 18:33:56,988][MainThread/DEBUG] PyCqBot: < TEXT '{"post_type":"meta_event","meta_event_type":"he...88}},"interval":5000}\n' [394 bytes]
[2023-04-08 18:33:56,992][MainThread/DEBUG] PyCqBot: go-cqhttp 上报 meta_event_heartbeat 事件: {'post_type': 'meta_event', 'meta_event_type': 'heartbeat', 'time': 1680978836, 'self_id': 169888531, 'status': {'app_enabled': True, 'app_good': True, 'app_initialized': True, 'good': True, 'online': True, 'plugins_good': None, 'stat': {'packet_received': 62, 'packet_sent': 41, 'packet_lost': 0, 'message_received': 7, 'message_sent': 7, 'disconnect_times': 0, 'lost_times': 0, 'last_message_time': 1680978688}}, 'interval': 5000}
[2023-04-08 18:33:56,994][MainThread/DEBUG] PyCqBot: websocket 心跳: {'post_type': 'meta_event', 'meta_event_type': 'heartbeat', 'time': 1680978836, 'self_id': 169888531, 'status': {'app_enabled': True, 'app_good': True, 'app_initialized': True, 'good': True, 'online': True, 'plugins_good': None, 'stat': {'packet_received': 62, 'packet_sent': 41, 'packet_lost': 0, 'message_received': 7, 'message_sent': 7, 'disconnect_times': 0, 'lost_times': 0, 'last_message_time': 1680978688}}, 'interval': 5000}
[2023-04-08 18:34:01,988][MainThread/DEBUG] PyCqBot: < TEXT '{"post_type":"meta_event","meta_event_type":"he...88}},"interval":5000}\n' [394 bytes]
[2023-04-08 18:34:01,991][MainThread/DEBUG] PyCqBot: go-cqhttp 上报 meta_event_heartbeat 事件: {'post_type': 'meta_event', 'meta_event_type': 'heartbeat', 'time': 1680978841, 'self_id': 169888531, 'status': {'app_enabled': True, 'app_good': True, 'app_initialized': True, 'good': True, 'online': True, 'plugins_good': None, 'stat': {'packet_received': 62, 'packet_sent': 41, 'packet_lost': 0, 'message_received': 7, 'message_sent': 7, 'disconnect_times': 0, 'lost_times': 0, 'last_message_time': 1680978688}}, 'interval': 5000}
[2023-04-08 18:34:01,993][MainThread/DEBUG] PyCqBot: websocket 心跳: {'post_type': 'meta_event', 'meta_event_type': 'heartbeat', 'time': 1680978841, 'self_id': 169888531, 'status': {'app_enabled': True, 'app_good': True, 'app_initialized': True, 'good': True, 'online': True, 'plugins_good': None, 'stat': {'packet_received': 62, 'packet_sent': 41, 'packet_lost': 0, 'message_received': 7, 'message_sent': 7, 'disconnect_times': 0, 'lost_times': 0, 'last_message_time': 1680978688}}, 'interval': 5000}
[2023-04-08 18:34:06,991][MainThread/DEBUG] PyCqBot: < TEXT '{"post_type":"meta_event","meta_event_type":"he...e_time":1680978688}}}\n' [394 bytes]
[2023-04-08 18:34:06,994][MainThread/DEBUG] PyCqBot: go-cqhttp 上报 meta_event_heartbeat 事件: {'post_type': 'meta_event', 'meta_event_type': 'heartbeat', 'time': 1680978846, 'self_id': 169888531, 'interval': 5000, 'status': {'app_enabled': True, 'app_good': True, 'app_initialized': True, 'good': True, 'online': True, 'plugins_good': None, 'stat': {'packet_received': 62, 'packet_sent': 41, 'packet_lost': 0, 'message_received': 7, 'message_sent': 7, 'disconnect_times': 0, 'lost_times': 0, 'last_message_time': 1680978688}}}
[2023-04-08 18:34:06,997][MainThread/DEBUG] PyCqBot: websocket 心跳: {'post_type': 'meta_event', 'meta_event_type': 'heartbeat', 'time': 1680978846, 'self_id': 169888531, 'interval': 5000, 'status': {'app_enabled': True, 'app_good': True, 'app_initialized': True, 'good': True, 'online': True, 'plugins_good': None, 'stat': {'packet_received': 62, 'packet_sent': 41, 'packet_lost': 0, 'message_received': 7, 'message_sent': 7, 'disconnect_times': 0, 'lost_times': 0, 'last_message_time': 1680978688}}}
[2023-04-08 18:34:07,382][MainThread/DEBUG] PyCqBot: % sending keepalive ping
[2023-04-08 18:34:07,384][MainThread/DEBUG] PyCqBot: > PING f0 f5 41 b8 [binary, 4 bytes]
[2023-04-08 18:34:07,389][MainThread/DEBUG] PyCqBot: < PONG f0 f5 41 b8 [binary, 4 bytes]
[2023-04-08 18:34:07,392][MainThread/DEBUG] PyCqBot: % received keepalive pong

image

`

@FengLiuFeseliud
Copy link
Owner

pycqBot 新消息会上报两种事件,私聊 message_private_* , 群 message_group_*,日志并未显示这两种上报,请打开 go-cqhttp debug 检查是否上报了消息事件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants