GithubHelp home page GithubHelp logo

napneko / napcatqq Goto Github PK

View Code? Open in Web Editor NEW
1.9K 7.0 141.0 33.98 MB

现代化的基于 NTQQ 的 Bot 协议端实现

Home Page: https://napneko.github.io

License: Other

JavaScript 3.82% TypeScript 85.55% HTML 2.40% CSS 6.10% PowerShell 0.72% Batchfile 1.41%
onebot11 napcat ncqq onebot

napcatqq's Introduction

NapCatQQ

欢迎回来

NapCatQQ (aka 猫猫框架) 是现代化的基于 NTQQ 的 Bot 协议端实现。

猫猫技能

  • 高性能:1K+ 群聊数目、20 线程并行发送消息毫无压力
  • 多种启动方式:支持以无头、LiteLoader 插件、仅 QQ GUI 三种方式启动
  • 多平台支持: 覆盖 Windows / Linux (可选 Docker) / Android Termux / MacOS
  • 安装简单: 支持一键脚本/程序自动部署/镜像部署等多种覆盖范围
  • 低占用:无头模式占用资源极低,适合在服务器上运行
  • 超多接口:实现大部分 OneBot 和 go-cqhttp 接口,超多扩展 API
  • WebUI:自带 WebUI 支持,远程管理更加便捷
  • 低故障率:快速适配最新版本,日常保证 0 Issue

使用猫猫

可前往 Release 页面下载最新版本

首次使用请务必前往官方文档查看使用教程。

回家旅途

QQ Group

Telegram Link

猫猫朋友

感谢 LLOneBot 提供部分参考

感谢 Lagrange 对本项目的大力支持

不过最最重要的 还是需要感谢屏幕前的你哦~


约法三章

Caution

请不要在 QQ 官方群聊和任何影响力较大的简中互联网平台(包括但不限于: 哔哩哔哩,微博,知乎,抖音等)发布和讨论任何与本项目存在相关性的信息

任何使用本仓库代码的地方,都应当严格遵守本仓库开源许可此外,禁止任何项目未经授权二次分发或基于 NapCat 代码开发。

napcatqq's People

Contributors

123233513 avatar ahjsrhj avatar canxin121 avatar clansty avatar cnxysoft avatar dependabot[bot] avatar dihechen avatar drsanwujiang avatar fripine avatar gfhdhytghd avatar guation avatar hguandl avatar icexbb avatar idranme avatar initialencounter avatar jetjinser avatar lgc2333 avatar linglambda avatar linyuchen avatar mlikiowa avatar po-lan avatar pohgxz avatar qhy040404 avatar serfend avatar shengwang52005 avatar sherkeyxd avatar wesley-young avatar xihan123 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

napcatqq's Issues

[BUG] 不定时崩溃

系统版本

Ubuntu 22.04.4 LTS

QQNT 版本

3.2.7-23361

NapCat 版本

1.5.3

OneBot 客户端

nonebot2 2.3.1

发生了什么?

崩溃

如何复现

  1. 运行napcat
  2. 等待
  3. boom

期望的结果?

不崩溃(

NapCat 运行日志

[BuglyManager.cpp][fatalHandler][165]_fatal_handler signo:  13
[BuglyManager.cpp][printBacktrace][121]backtrace n_ptrs: 5
[BuglyManager.cpp][printBacktrace][126]backtrace_symbols ret: 0x20e4026ef000
[BuglyManager.cpp][printBacktrace][130]++++++++ FATAL ERROR(signal: 13) +++++++
[BuglyManager.cpp][printBacktrace][133]+++ trace: /lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7f9128a52520]
[BuglyManager.cpp][printBacktrace][133]+++ trace: /lib/x86_64-linux-gnu/libc.so.6(writev+0x4d) [0x7f9128b2aa8d]
[BuglyManager.cpp][printBacktrace][133]+++ trace: /opt/QQ/qq(+0x248cb09) [0x562c049ceb09]
[BuglyManager.cpp][printBacktrace][136]+++++++++++++++++++++++++++

OneBot 客户端运行日志

No response

[BUG] 反向ws使用set_group_add_request 同意入群申请超时,且 log没有输出异常信息

系统版本

Ubuntu Linux

QQNT 版本

没有找到

NapCat 版本

1.4.7

OneBot 客户端

没有找到

发生了什么?

反向ws使用set_group_add_request同意入群申请时超时(WebSocket API call timeout
),并且入群申请没有被同意

NapCat收到入群申请后没有输出任何日志,也没有任何错误

如何复现

1 申请加群
2 用收到的flag和sub_type,加上approve=true同意入群申请

期望的结果?

与6周前的上古版本一样正常的同意申请

NapCat 运行日志

[NapCat]  当前版本: 1.4.7

[NapCat] 检测到更新,请前往 https://github.com/NapNeko/NapCatQQ 下载 NapCatQQ V 1.4.8
linux-bugly: init bugly ...
InitBuglyManager
SetLogger
fatalSetup
GetDllPath: 33
pub_key_path: /opt/QQ/resources/app/pub.key
[BuglyManager.cpp][InitBuglyManager][212]InitBuglyManager path: /root/.config/QQ/crash_files/
BuglyManager/opt/QQ/resources/app/pub.key
[BuglyService.cpp][registBugly][589]set signal stack
[BuglyService.cpp][registSignalHandler][520]regist native handler
registBugly/opt/QQ/resources/app/pub.key
[BuglyService.cpp][setParam][618]setParam, key:appVersion, value:9.9.9-23361..
setParam/opt/QQ/resources/app/pub.key
StartWithOptions s/opt/QQ/resources/app/pub.key
StartWithOptions e/opt/QQ/resources/app/pub.key
PostDelayedTask s/opt/QQ/resources/app/pub.key
PostDelayedTask e/opt/QQ/resources/app/pub.key
linux-bugly: init bugly done.
2024-06-03 07:56:22 [DEBUG] -
配置文件/usr/src/app/napcat/config/napcat_******.json已加载 {"fileLog":true,"consoleLog":true,"fileLogLevel":"debug","consoleLogLevel":"info"}

2024-06-03 07:56:22 [INFO] (******)

    HTTP服务 未启动, :3000
    HTTP上报服务 未启动, 上报地址:
    WebSocket服务 未启动, :3001
    WebSocket反向服务 已启动, 反向地址: ws://172.17.0.1:****/ws/

OneBot 客户端运行日志

yobot框架可以用napcatqq接收消息但无法发送消息

系统版本

Ubuntu 20.04

QQNT 版本

Linux QQ 2.3.7-23361

NapCat 版本

NapCat V1.3.0

OneBot 客户端

nonebot

发生了什么?

yobot可以从Napcat的反向websocket中获取消息,但没办法将消息通过Napcat发送出去

如何复现

all

期望的结果?

yobot通过Napcat的反向websocket正常收发消息

NapCat 运行日志

No response

OneBot 客户端运行日志

No response

[BUG] 群聊单条消息包含多个图片,napcat.linux获取的全是第一张

系统版本

LXC ubuntu-22.04-standard_22.04-1_amd64

QQNT 版本

Linux 3.2.7-23361

NapCat 版本

1.3.0

OneBot 客户端

自己搓的

发生了什么?

群里发三张不同的图片
image
napcat推送的全部是同一张
可以看下面的日志,url全部相同,但是file_size不同

如何复现

  • 正确安装linux napcat x64
  • 往群里一起发三张图
  • napcat推送的是同一张

期望的结果?

单消息多张图片每张图都正确获取

NapCat 运行日志

2024-05-09 16:33:43 [INFO] -
正在快速登录  XXXXXXXXXX

2024-05-09 16:33:43 [INFO] -
[NapCat]  当前版本: 1.3.0

2024-05-09 16:33:43 [DEBUG] -
[NapCat]  当前已是最新版本

2024-05-09 16:33:44 [DEBUG] -
配置文件/root/NapCat.linux.x64/config/napcat_XXXXXXXXXX.json已加载 {"fileLog":true,"consoleLog":true,"fileLogLevel":"debug","consoleLogLevel":"info"}

2024-05-09 16:33:44 [DEBUG] (XXXXXXXXXX)
本账号数据/缓存目录: /root/.config/QQ/NapCat/data

2024-05-09 16:33:44 [DEBUG] (XXXXXXXXXX)
数据库中消息最大短id -2147472192

2024-05-09 16:33:44 [DEBUG] (XXXXXXXXXX)
ob11 ready

2024-05-09 16:33:44 [DEBUG] (XXXXXXXXXX)
配置文件/root/NapCat.linux.x64/config/onebot11_XXXXXXXXXX.json已加载 {"httpHost":"","enableHttp":true,"httpPort":3100,"wsHost":"","enableWs":false,"wsPort":3101,"enableWsReverse":false,"wsReverseUrls":[],"enableHttpPost":true,"httpPostUrls":["https://XXXXXXXXXX/cqhttp"],"enableHttpHeart":false,"httpSecret":"","messagePostFormat":"string","reportSelfMessage":false,"debug":false,"enableLocalFile2Url":true,"heartInterval":30000,"token":"","musicSignUrl":""}

2024-05-09 16:33:44 [INFO] (XXXXXXXXXX)

    HTTP服务 已启动, :3100
    HTTP上报服务 已启动, 上报地址: https://XXXXXXXXXX/cqhttp
    WebSocket服务 未启动, :3101
    WebSocket反向服务 未启动, 反向地址:


2024-05-09 16:33:44 [DEBUG] (XXXXXXXXXX)
ob11 msg listener added

2024-05-09 16:33:44 [DEBUG] (XXXXXXXXXX)
ob11 buddy listener added

2024-05-09 16:33:44 [DEBUG] (XXXXXXXXXX)
ob11 group listener added

2024-05-09 16:33:44 [INFO] (XXXXXXXXXX)
OneBot V11 server started 0.0.0.0:3100

2024-05-09 16:33:48 [DEBUG] XXXX(XXXXXXXXXX)
收到消息 [{"msgId":"7367038982273370672","msgRandom":"966944402","msgSeq":"198563","cntSeq":"0","chatType":2,"msgType":2,"subMsgType":3,"sendType":0,"senderUid":"u_y9fscFIGFPHApAf0ojA7zQ","peerUid":"XXXXXXXXXX","channelId":"","guildId":"","guildCode":"0","fromUid":"0","fromAppid":"0","msgTime":"1715272428","msgMeta":"0x","sendStatus":2,"sendRemarkName":"XXXX","sendMemberName":"XXXX","sendNickName":"","guildName":"","channelName":"","elements":[{"elementType":2,"elementId":"7367038982273370668","extBufForUI":"0x","textElement":null,"faceElement":null,"marketFaceElement":null,"replyElement":null,"picElement":{"picSubType":0,"fileName":"46015B3DCC816FF1C1AB247B76803F9C.png","fileSize":"13984","picWidth":258,"picHeight":70,"original":true,"md5HexStr":"46015b3dcc816ff1c1ab247b76803f9c","sourcePath":"/root/.config/QQ/nt_qq_13ab66d96911192cdc98dffa3c4f21b3/nt_data/Pic/2024-05/Ori/46015b3dcc816ff1c1ab247b76803f9c.png","thumbPath":{},"transferStatus":0,"progress":0,"picType":1001,"invalidState":0,"fileUuid":"CgoxNjgzMDE3NjMzEhTGVp9P7AQ05-ZwEWGDkBjbR8D7ORigbSD_CiiEwsLd_4CGA1CAvaMB","fileSubId":"","thumbFileSize":0,"fileBizId":null,"downloadIndex":null,"summary":"","emojiFrom":0,"emojiWebUrl":"","emojiAd":{"url":"","desc":""},"emojiMall":{"packageId":0,"emojiId":0},"emojiZplan":{"actionId":0,"actionName":"","actionType":0,"playerNumber":0,"peerUid":"0","bytesReserveInfo":""},"originImageMd5":"undefined","originImageUrl":"/download?appid=1407&fileid=CgoxNjgzMDE3NjMzEhTGVp9P7AQ05-ZwEWGDkBjbR8D7ORigbSD_CiiEwsLd_4CGA1CAvaMB&spec=0","import_rich_media_context":null,"isFlashPic":null,"storeID":1},"pttElement":null,"videoElement":null,"grayTipElement":null,"arkElement":null,"fileElement":null,"liveGiftElement":null,"markdownElement":null,"structLongMsgElement":null,"multiForwardMsgElement":null,"giphyElement":null,"walletElement":null,"inlineKeyboardElement":null,"textGiftElement":null,"calendarElement":null,"yoloGameResultElement":null,"avRecordElement":null,"structMsgElement":null,"faceBubbleElement":null,"shareLocationElement":null,"tofuRecordElement":null,"taskTopMsgElement":null,"recommendedMsgElement":null,"actionBarElement":null},{"elementType":2,"elementId":"7367038982273370669","extBufForUI":"0x","textElement":null,"faceElement":null,"marketFaceElement":null,"replyElement":null,"picElement":{"picSubType":0,"fileName":"9E60FE21C78C4664F112B00788E7B5F4.png","fileSize":"12319","picWidth":262,"picHeight":64,"original":true,"md5HexStr":"9e60fe21c78c4664f112b00788e7b5f4","sourcePath":"/root/.config/QQ/nt_qq_13ab66d96911192cdc98dffa3c4f21b3/nt_data/Pic/2024-05/Ori/9e60fe21c78c4664f112b00788e7b5f4.png","thumbPath":{},"transferStatus":0,"progress":0,"picType":1001,"invalidState":0,"fileUuid":"CgoxNjgzMDE3NjMzEhTablwj_lwZZaWkHLXcpsizyMUKQBifYCD_Cii1lcTd_4CGA1CAvaMB","fileSubId":"","thumbFileSize":0,"fileBizId":null,"downloadIndex":null,"summary":"","emojiFrom":0,"emojiWebUrl":"","emojiAd":{"url":"","desc":""},"emojiMall":{"packageId":0,"emojiId":0},"emojiZplan":{"actionId":0,"actionName":"","actionType":0,"playerNumber":0,"peerUid":"0","bytesReserveInfo":""},"originImageMd5":"undefined","originImageUrl":"/download?appid=1407&fileid=CgoxNjgzMDE3NjMzEhTablwj_lwZZaWkHLXcpsizyMUKQBifYCD_Cii1lcTd_4CGA1CAvaMB&spec=0","import_rich_media_context":null,"isFlashPic":null,"storeID":1},"pttElement":null,"videoElement":null,"grayTipElement":null,"arkElement":null,"fileElement":null,"liveGiftElement":null,"markdownElement":null,"structLongMsgElement":null,"multiForwardMsgElement":null,"giphyElement":null,"walletElement":null,"inlineKeyboardElement":null,"textGiftElement":null,"calendarElement":null,"yoloGameResultElement":null,"avRecordElement":null,"structMsgElement":null,"faceBubbleElement":null,"shareLocationElement":null,"tofuRecordElement":null,"taskTopMsgElement":null,"recommendedMsgElement":null,"actionBarElement":null},{"elementType":2,"elementId":"7367038982273370670","extBufForUI":"0x","textElement":null,"faceElement":null,"marketFaceElement":null,"replyElement":null,"picElement":{"picSubType":0,"fileName":"3FB6C1D922161C8A6D4E67005BEF9DA7.png","fileSize":"15157","picWidth":290,"picHeight":71,"original":true,"md5HexStr":"3fb6c1d922161c8a6d4e67005bef9da7","sourcePath":"/root/.config/QQ/nt_qq_13ab66d96911192cdc98dffa3c4f21b3/nt_data/Pic/2024-05/Ori/3fb6c1d922161c8a6d4e67005bef9da7.png","thumbPath":{},"transferStatus":0,"progress":0,"picType":1001,"invalidState":0,"fileUuid":"CgoxNjgzMDE3NjMzEhRAKYB2Cwcns8amEb_Ypc4mWAJ5MRi1diD_CiiH3uDd_4CGA1CAvaMB","fileSubId":"","thumbFileSize":0,"fileBizId":null,"downloadIndex":null,"summary":"","emojiFrom":0,"emojiWebUrl":"","emojiAd":{"url":"","desc":""},"emojiMall":{"packageId":0,"emojiId":0},"emojiZplan":{"actionId":0,"actionName":"","actionType":0,"playerNumber":0,"peerUid":"0","bytesReserveInfo":""},"originImageMd5":"undefined","originImageUrl":"/download?appid=1407&fileid=CgoxNjgzMDE3NjMzEhRAKYB2Cwcns8amEb_Ypc4mWAJ5MRi1diD_CiiH3uDd_4CGA1CAvaMB&spec=0","import_rich_media_context":null,"isFlashPic":null,"storeID":1},"pttElement":null,"videoElement":null,"grayTipElement":null,"arkElement":null,"fileElement":null,"liveGiftElement":null,"markdownElement":null,"structLongMsgElement":null,"multiForwardMsgElement":null,"giphyElement":null,"walletElement":null,"inlineKeyboardElement":null,"textGiftElement":null,"calendarElement":null,"yoloGameResultElement":null,"avRecordElement":null,"structMsgElement":null,"faceBubbleElement":null,"shareLocationElement":null,"tofuRecordElement":null,"taskTopMsgElement":null,"recommendedMsgElement":null,"actionBarElement":null},{"elementType":1,"elementId":"7367038982273370671","extBufForUI":"0x","textElement":{"content":"图片测试","atType":0,"atUid":"0","atTinyId":"0","atNtUid":"","subElementType":0,"atChannelId":"0","linkInfo":null,"atRoleId":"0","atRoleColor":0,"atRoleName":"","needNotify":0},"faceElement":null,"marketFaceElement":null,"replyElement":null,"picElement":null,"pttElement":null,"videoElement":null,"grayTipElement":null,"arkElement":null,"fileElement":null,"liveGiftElement":null,"markdownElement":null,"structLongMsgElement":null,"multiForwardMsgElement":null,"giphyElement":null,"walletElement":null,"inlineKeyboardElement":null,"textGiftElement":null,"calendarElement":null,"yoloGameResultElement":null,"avRecordElement":null,"structMsgElement":null,"faceBubbleElement":null,"shareLocationElement":null,"tofuRecordElement":null,"taskTopMsgElement":null,"recommendedMsgElement":null,"actionBarElement":null}],"records":[],"emojiLikesList":[],"commentCnt":"0","directMsgFlag":0,"directMsgMembers":[],"peerName":"XXXXXXXXXX","freqLimitInfo":null,"editable":false,"avatarMeta":"","avatarPendant":"","feedId":"","roleId":"0","timeStamp":"0","clientIdentityInfo":null,"isImportMsg":false,"atType":0,"roleType":0,"fromChannelRoleInfo":{"roleId":"0","name":"","color":0},"fromGuildRoleInfo":{"roleId":"0","name":"","color":0},"levelRoleInfo":{"roleId":"0","name":"","color":0},"recallTime":"0","isOnlineMsg":true,"generalFlags":"0x","clientSeq":"0","fileGroupSize":null,"foldingInfo":null,"multiTransInfo":null,"senderUin":"XXXXXXXXXX","peerUin":"XXXXXXXXXX","msgAttrs":{},"anonymousExtInfo":null,"nameType":0,"avatarFlag":0,"extInfoForUI":null,"personalMedal":null,"categoryManage":0,"msgEventInfo":null}]

2024-05-09 16:33:48 [DEBUG] XXXX(XXXXXXXXXX)
记录消息到数据库, 消息长id: 7367038982273370672, 短id: -2147472191

2024-05-09 16:33:48 [DEBUG] XXXX(XXXXXXXXXX)
收到新消息 {"msgId":"7367038982273370672","msgRandom":"966944402","msgSeq":"198563","cntSeq":"0","chatType":2,"msgType":2,"subMsgType":3,"sendType":0,"senderUid":"u_y9fscFIGFPHApAf0ojA7zQ","peerUid":"XXXXXXXXXX","channelId":"","guildId":"","guildCode":"0","fromUid":"0","fromAppid":"0","msgTime":"1715272428","msgMeta":"0x","sendStatus":2,"sendRemarkName":"XXXX","sendMemberName":"XXXX","sendNickName":"","guildName":"","channelName":"","elements":[{"elementType":2,"elementId":"7367038982273370668","extBufForUI":"0x","textElement":null,"faceElement":null,"marketFaceElement":null,"replyElement":null,"picElement":{"picSubType":0,"fileName":"46015B3DCC816FF1C1AB247B76803F9C.png","fileSize":"13984","picWidth":258,"picHeight":70,"original":true,"md5HexStr":"46015b3dcc816ff1c1ab247b76803f9c","sourcePath":"/root/.config/QQ/nt_qq_13ab66d96911192cdc98dffa3c4f21b3/nt_data/Pic/2024-05/Ori/46015b3dcc816ff1c1ab247b76803f9c.png","thumbPath":{},"transferStatus":0,"progress":0,"picType":1001,"invalidState":0,"fileUuid":"CgoxNjgzMDE3NjMzEhTGVp9P7AQ05-ZwEWGDkBjbR8D7ORigbSD_CiiEwsLd_4CGA1CAvaMB","fileSubId":"","thumbFileSize":0,"fileBizId":null,"downloadIndex":null,"summary":"","emojiFrom":0,"emojiWebUrl":"","emojiAd":{"url":"","desc":""},"emojiMall":{"packageId":0,"emojiId":0},"emojiZplan":{"actionId":0,"actionName":"","actionType":0,"playerNumber":0,"peerUid":"0","bytesReserveInfo":""},"originImageMd5":"undefined","originImageUrl":"/download?appid=1407&fileid=CgoxNjgzMDE3NjMzEhTGVp9P7AQ05-ZwEWGDkBjbR8D7ORigbSD_CiiEwsLd_4CGA1CAvaMB&spec=0","import_rich_media_context":null,"isFlashPic":null,"storeID":1},"pttElement":null,"videoElement":null,"grayTipElement":null,"arkElement":null,"fileElement":null,"liveGiftElement":null,"markdownElement":null,"structLongMsgElement":null,"multiForwardMsgElement":null,"giphyElement":null,"walletElement":null,"inlineKeyboardElement":null,"textGiftElement":null,"calendarElement":null,"yoloGameResultElement":null,"avRecordElement":null,"structMsgElement":null,"faceBubbleElement":null,"shareLocationElement":null,"tofuRecordElement":null,"taskTopMsgElement":null,"recommendedMsgElement":null,"actionBarElement":null},{"elementType":2,"elementId":"7367038982273370669","extBufForUI":"0x","textElement":null,"faceElement":null,"marketFaceElement":null,"replyElement":null,"picElement":{"picSubType":0,"fileName":"9E60FE21C78C4664F112B00788E7B5F4.png","fileSize":"12319","picWidth":262,"picHeight":64,"original":true,"md5HexStr":"9e60fe21c78c4664f112b00788e7b5f4","sourcePath":"/root/.config/QQ/nt_qq_13ab66d96911192cdc98dffa3c4f21b3/nt_data/Pic/2024-05/Ori/9e60fe21c78c4664f112b00788e7b5f4.png","thumbPath":{},"transferStatus":0,"progress":0,"picType":1001,"invalidState":0,"fileUuid":"CgoxNjgzMDE3NjMzEhTablwj_lwZZaWkHLXcpsizyMUKQBifYCD_Cii1lcTd_4CGA1CAvaMB","fileSubId":"","thumbFileSize":0,"fileBizId":null,"downloadIndex":null,"summary":"","emojiFrom":0,"emojiWebUrl":"","emojiAd":{"url":"","desc":""},"emojiMall":{"packageId":0,"emojiId":0},"emojiZplan":{"actionId":0,"actionName":"","actionType":0,"playerNumber":0,"peerUid":"0","bytesReserveInfo":""},"originImageMd5":"undefined","originImageUrl":"/download?appid=1407&fileid=CgoxNjgzMDE3NjMzEhTablwj_lwZZaWkHLXcpsizyMUKQBifYCD_Cii1lcTd_4CGA1CAvaMB&spec=0","import_rich_media_context":null,"isFlashPic":null,"storeID":1},"pttElement":null,"videoElement":null,"grayTipElement":null,"arkElement":null,"fileElement":null,"liveGiftElement":null,"markdownElement":null,"structLongMsgElement":null,"multiForwardMsgElement":null,"giphyElement":null,"walletElement":null,"inlineKeyboardElement":null,"textGiftElement":null,"calendarElement":null,"yoloGameResultElement":null,"avRecordElement":null,"structMsgElement":null,"faceBubbleElement":null,"shareLocationElement":null,"tofuRecordElement":null,"taskTopMsgElement":null,"recommendedMsgElement":null,"actionBarElement":null},{"elementType":2,"elementId":"7367038982273370670","extBufForUI":"0x","textElement":null,"faceElement":null,"marketFaceElement":null,"replyElement":null,"picElement":{"picSubType":0,"fileName":"3FB6C1D922161C8A6D4E67005BEF9DA7.png","fileSize":"15157","picWidth":290,"picHeight":71,"original":true,"md5HexStr":"3fb6c1d922161c8a6d4e67005bef9da7","sourcePath":"/root/.config/QQ/nt_qq_13ab66d96911192cdc98dffa3c4f21b3/nt_data/Pic/2024-05/Ori/3fb6c1d922161c8a6d4e67005bef9da7.png","thumbPath":{},"transferStatus":0,"progress":0,"picType":1001,"invalidState":0,"fileUuid":"CgoxNjgzMDE3NjMzEhRAKYB2Cwcns8amEb_Ypc4mWAJ5MRi1diD_CiiH3uDd_4CGA1CAvaMB","fileSubId":"","thumbFileSize":0,"fileBizId":null,"downloadIndex":null,"summary":"","emojiFrom":0,"emojiWebUrl":"","emojiAd":{"url":"","desc":""},"emojiMall":{"packageId":0,"emojiId":0},"emojiZplan":{"actionId":0,"actionName":"","actionType":0,"playerNumber":0,"peerUid":"0","bytesReserveInfo":""},"originImageMd5":"undefined","originImageUrl":"/download?appid=1407&fileid=CgoxNjgzMDE3NjMzEhRAKYB2Cwcns8amEb_Ypc4mWAJ5MRi1diD_CiiH3uDd_4CGA1CAvaMB&spec=0","import_rich_media_context":null,"isFlashPic":null,"storeID":1},"pttElement":null,"videoElement":null,"grayTipElement":null,"arkElement":null,"fileElement":null,"liveGiftElement":null,"markdownElement":null,"structLongMsgElement":null,"multiForwardMsgElement":null,"giphyElement":null,"walletElement":null,"inlineKeyboardElement":null,"textGiftElement":null,"calendarElement":null,"yoloGameResultElement":null,"avRecordElement":null,"structMsgElement":null,"faceBubbleElement":null,"shareLocationElement":null,"tofuRecordElement":null,"taskTopMsgElement":null,"recommendedMsgElement":null,"actionBarElement":null},{"elementType":1,"elementId":"7367038982273370671","extBufForUI":"0x","textElement":{"content":"图片测试","atType":0,"atUid":"0","atTinyId":"0","atNtUid":"","subElementType":0,"atChannelId":"0","linkInfo":null,"atRoleId":"0","atRoleColor":0,"atRoleName":"","needNotify":0},"faceElement":null,"marketFaceElement":null,"replyElement":null,"picElement":null,"pttElement":null,"videoElement":null,"grayTipElement":null,"arkElement":null,"fileElement":null,"liveGiftElement":null,"markdownElement":null,"structLongMsgElement":null,"multiForwardMsgElement":null,"giphyElement":null,"walletElement":null,"inlineKeyboardElement":null,"textGiftElement":null,"calendarElement":null,"yoloGameResultElement":null,"avRecordElement":null,"structMsgElement":null,"faceBubbleElement":null,"shareLocationElement":null,"tofuRecordElement":null,"taskTopMsgElement":null,"recommendedMsgElement":null,"actionBarElement":null}],"records":[],"emojiLikesList":[],"commentCnt":"0","directMsgFlag":0,"directMsgMembers":[],"peerName":"XXXXXXXXXX","freqLimitInfo":null,"editable":false,"avatarMeta":"","avatarPendant":"","feedId":"","roleId":"0","timeStamp":"0","clientIdentityInfo":null,"isImportMsg":false,"atType":0,"roleType":0,"fromChannelRoleInfo":{"roleId":"0","name":"","color":0},"fromGuildRoleInfo":{"roleId":"0","name":"","color":0},"levelRoleInfo":{"roleId":"0","name":"","color":0},"recallTime":"0","isOnlineMsg":true,"generalFlags":"0x","clientSeq":"0","fileGroupSize":null,"foldingInfo":null,"multiTransInfo":null,"senderUin":"XXXXXXXXXX","peerUin":"XXXXXXXXXX","msgAttrs":{},"anonymousExtInfo":null,"nameType":0,"avatarFlag":0,"extInfoForUI":null,"personalMedal":null,"categoryManage":0,"msgEventInfo":null,"id":-2147472191}

2024-05-09 16:33:48 [DEBUG] XXXX(XXXXXXXXXX)
rkey过期或着未获取, url:/download?appid=1407&fileid=CgoxNjgzMDE3NjMzEhTGVp9P7AQ05-ZwEWGDkBjbR8D7ORigbSD_CiiEwsLd_4CGA1CAvaMB&spec=0, rkey:

2024-05-09 16:33:48 [DEBUG] XXXX(XXXXXXXXXX)
获取图片rkey...

2024-05-09 16:33:48 [DEBUG] XXXX(XXXXXXXXXX)
receive downloadMedia task 7367038982273370672 2 XXXXXXXXXX 7367038982273370668  /root/.config/QQ/nt_qq_13ab66d96911192cdc98dffa3c4f21b3/nt_data/Pic/2024-05/Ori/46015b3dcc816ff1c1ab247b76803f9c.png 30000 true

2024-05-09 16:33:48 [DEBUG] XXXX(XXXXXXXXXX)
start downloadMedia 7367038982273370672 2 XXXXXXXXXX 7367038982273370668  /root/.config/QQ/nt_qq_13ab66d96911192cdc98dffa3c4f21b3/nt_data/Pic/2024-05/Ori/46015b3dcc816ff1c1ab247b76803f9c.png 30000 true

2024-05-09 16:33:48 [DEBUG] XXXX(XXXXXXXXXX)
downloadMedia complete {"fileModelId":"7367038982273370668","msgElementId":"7367038982273370668","msgId":"7367038982273370672","fileId":"","fileProgress":"0","fileSpeed":"0","fileErrCode":"0","fileErrMsg":"","fileDownType":1,"thumbSize":0,"filePath":"/root/.config/QQ/nt_qq_13ab66d96911192cdc98dffa3c4f21b3/nt_data/Pic/2024-05/Ori/46015b3dcc816ff1c1ab247b76803f9c.png","totalSize":"0","trasferStatus":4,"step":0,"commonFileInfo":null,"fileSrvErrCode":"0","clientMsg":"","businessId":0,"userTotalSpacePerDay":null,"userUsedSpacePerDay":null} 7367038982273370672

2024-05-09 16:33:48 [DEBUG] XXXX(XXXXXXXXXX)
更新消息, shortId:undefined, seq: 198563, msgId: 7367038982273370672

2024-05-09 16:33:49 [DEBUG] XXXX(XXXXXXXXXX)
开始调用moeHook获取rkey

2024-05-09 16:33:49 [DEBUG] XXXX(XXXXXXXXXX)
检查rkey是否有效 https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=CgoxNjgzMDE3NjMzEhTGVp9P7AQ05-ZwEWGDkBjbR8D7ORigbSD_CiiEwsLd_4CGA1CAvaMB&spec=0&rkey=CAMSKMa3OFokB_TlOIVcQmGhWRjmk7T0m9HXIaNxY22zivLobBufvwg6CFY

2024-05-09 16:33:49 [DEBUG] XXXX(XXXXXXXXXX)
图片rkey有效 https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=CgoxNjgzMDE3NjMzEhTGVp9P7AQ05-ZwEWGDkBjbR8D7ORigbSD_CiiEwsLd_4CGA1CAvaMB&spec=0&rkey=CAMSKMa3OFokB_TlOIVcQmGhWRjmk7T0m9HXIaNxY22zivLobBufvwg6CFY

2024-05-09 16:33:49 [DEBUG] XXXX(XXXXXXXXXX)
收到消息:  {"self_id":XXXXXXXXXX,"user_id":XXXXXXXXXX,"time":1715272428,"message_id":-2147472191,"message_seq":-2147472191,"real_id":-2147472191,"message_type":"group","sender":{"user_id":XXXXXXXXXX,"nickname":"XXXX","card":"XXXX","role":"owner"},"raw_message":"[CQ:image,file=46015B3DCC816FF1C1AB247B76803F9C.png,url=https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=CgoxNjgzMDE3NjMzEhTGVp9P7AQ05-ZwEWGDkBjbR8D7ORigbSD_CiiEwsLd_4CGA1CAvaMB&spec=0&rkey=CAMSKMa3OFokB_TlOIVcQmGhWRjmk7T0m9HXIaNxY22zivLobBufvwg6CFY,file_size=13984][CQ:image,file=9E60FE21C78C4664F112B00788E7B5F4.png,url=https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=CgoxNjgzMDE3NjMzEhTGVp9P7AQ05-ZwEWGDkBjbR8D7ORigbSD_CiiEwsLd_4CGA1CAvaMB&spec=0&rkey=...","font":14,"sub_type":"normal","message":"[CQ:image,file=46015B3DCC816FF1C1AB247B76803F9C.png,url=https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=CgoxNjgzMDE3NjMzEhTGVp9P7AQ05-ZwEWGDkBjbR8D7ORigbSD_CiiEwsLd_4CGA1CAvaMB&spec=0&rkey=CAMSKMa3OFokB_TlOIVcQmGhWRjmk7T0m9HXIaNxY22zivLobBufvwg6CFY,file_size=13984][CQ:image,file=9E60FE21C78C4664F112B00788E7B5F4.png,url=https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=CgoxNjgzMDE3NjMzEhTGVp9P7AQ05-ZwEWGDkBjbR8D7ORigbSD_CiiEwsLd_4CGA1CAvaMB&spec=0&rkey=...","message_format":"string","post_type":"message","group_id":XXXXXXXXXX}

2024-05-09 16:33:49 [INFO] XXXX(XXXXXXXXXX)
群[XXXXXXXXXX(XXXXXXXXXX)] XXXX(XXXXXXXXXX): [CQ:image,file=46015B3DCC816FF1C1AB247B76803F9C.png,url=https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=CgoxNjgzMDE3NjMzEhTGVp9P7AQ05-ZwEWGDkBjbR8D7ORigbSD_CiiEwsLd_4CGA1CAvaMB&spec=0&rkey=CAMSKMa3OFokB_TlOIVcQmGhWRjmk7T0m9HXIaNxY22zivLobBufvwg6CFY,file_size=13984][CQ:image,file=9E60FE21C78C4664F112B00788E7B5F4.png,url=https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=CgoxNjgzMDE3NjMzEhTGVp9P7AQ05-ZwEWGDkBjbR8D7ORigbSD_CiiEwsLd_4CGA1CAvaMB&spec=0&rkey=CAMSKMa3OFokB_TlOIVcQmGhWRjmk7T0m9HXIaNxY22zivLobBufvwg6CFY,file_size=12319][CQ:image,file=3FB6C1D922161C8A6D4E67005BEF9DA7.png,url=https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=CgoxNjgzMDE3NjMzEhTGVp9P7AQ05-ZwEWGDkBjbR8D7ORigbSD_CiiEwsLd_4CGA1CAvaMB&spec=0&rkey=CAMSKMa3OFokB_TlOIVcQmGhWRjmk7T0m9HXIaNxY22zivLobBufvwg6CFY,file_size=15157]图片测试

2024-05-09 16:33:49 [DEBUG] XXXX(XXXXXXXXXX)
新消息事件HTTP上报成功: https://XXXXXXXXXX/cqhttp  {"self_id":XXXXXXXXXX,"user_id":XXXXXXXXXX,"time":1715272428,"message_id":-2147472191,"message_seq":-2147472191,"real_id":-2147472191,"message_type":"group","sender":{"user_id":XXXXXXXXXX,"nickname":"XXXX","card":"XXXX","role":"owner"},"raw_message":"[CQ:image,file=46015B3DCC816FF1C1AB247B76803F9C.png,url=https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=CgoxNjgzMDE3NjMzEhTGVp9P7AQ05-ZwEWGDkBjbR8D7ORigbSD_CiiEwsLd_4CGA1CAvaMB&spec=0&rkey=CAMSKMa3OFokB_TlOIVcQmGhWRjmk7T0m9HXIaNxY22zivLobBufvwg6CFY,file_size=13984][CQ:image,file=9E60FE21C78C4664F112B00788E7B5F4.png,url=https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=CgoxNjgzMDE3NjMzEhTGVp9P7AQ05-ZwEWGDkBjbR8D7ORigbSD_CiiEwsLd_4CGA1CAvaMB&spec=0&rkey=CAMSKMa3OFokB_TlOIVcQmGhWRjmk7T0m9HXIaNxY22zivLobBufvwg6CFY,file_size=12319][CQ:image,file=3FB6C1D922161C8A6D4E67005BEF9DA7.png,url=https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=CgoxNjgzMDE3NjMzEhTGVp9P7AQ05-ZwEWGDkBjbR8D7ORigbSD_CiiEwsLd_4CGA1CAvaMB&spec=0&rkey=CAMSKMa3OFokB_TlOIVcQmGhWRjmk7T0m9HXIaNxY22zivLobBufvwg6CFY,file_size=15157]图片测试","font":14,"sub_type":"normal","message":"[CQ:image,file=46015B3DCC816FF1C1AB247B76803F9C.png,url=https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=CgoxNjgzMDE3NjMzEhTGVp9P7AQ05-ZwEWGDkBjbR8D7ORigbSD_CiiEwsLd_4CGA1CAvaMB&spec=0&rkey=CAMSKMa3OFokB_TlOIVcQmGhWRjmk7T0m9HXIaNxY22zivLobBufvwg6CFY,file_size=13984][CQ:image,file=9E60FE21C78C4664F112B00788E7B5F4.png,url=https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=CgoxNjgzMDE3NjMzEhTGVp9P7AQ05-ZwEWGDkBjbR8D7ORigbSD_CiiEwsLd_4CGA1CAvaMB&spec=0&rkey=CAMSKMa3OFokB_TlOIVcQmGhWRjmk7T0m9HXIaNxY22zivLobBufvwg6CFY,file_size=12319][CQ:image,file=3FB6C1D922161C8A6D4E67005BEF9DA7.png,url=https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=CgoxNjgzMDE3NjMzEhTGVp9P7AQ05-ZwEWGDkBjbR8D7ORigbSD_CiiEwsLd_4CGA1CAvaMB&spec=0&rkey=CAMSKMa3OFokB_TlOIVcQmGhWRjmk7T0m9HXIaNxY22zivLobBufvwg6CFY,file_size=15157]图片测试","message_format":"string","post_type":"message","group_id":XXXXXXXXXX}

2024-05-09 16:33:49 [DEBUG] XXXX(XXXXXXXXXX)
新消息事件HTTP上报返回快速操作:  {}

OneBot 客户端运行日志

192.168.0.103 - - [10/May/2024 00:28:37] "POST /sendmsg HTTP/1.1" 200 -
{'name': 'XXXX', 'msg': '[CQ:image,file=46015B3DCC816FF1C1AB247B76803F9C.png,url=https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=CgoxNjgzMDE3NjMzEhTGVp9P7AQ05-ZwEWGDkBjbR8D7ORigbSD_CiiEwsLd_4CGA1CAvaMB&spec=0&rkey=CAESKBkcro_MGujoNP1msrP-QY_6JrJGFSPi2Rjb3DzNJAtczAvNhqjAMOw,file_size=13984][CQ:image,file=9E60FE21C78C4664F112B00788E7B5F4.png,url=https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=CgoxNjgzMDE3NjMzEhTGVp9P7AQ05-ZwEWGDkBjbR8D7ORigbSD_CiiEwsLd_4CGA1CAvaMB&spec=0&rkey=CAESKBkcro_MGujoNP1msrP-QY_6JrJGFSPi2Rjb3DzNJAtczAvNhqjAMOw,file_size=12319][CQ:image,file=3FB6C1D922161C8A6D4E67005BEF9DA7.png,url=https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=CgoxNjgzMDE3NjMzEhTGVp9P7AQ05-ZwEWGDkBjbR8D7ORigbSD_CiiEwsLd_4CGA1CAvaMB&spec=0&rkey=CAESKBkcro_MGujoNP1msrP-QY_6JrJGFSPi2Rjb3DzNJAtczAvNhqjAMOw,file_size=15157]图片测试'}
[CQ:image,file=46015B3DCC816FF1C1AB247B76803F9C.png,url=https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=CgoxNjgzMDE3NjMzEhTGVp9P7AQ05-ZwEWGDkBjbR8D7ORigbSD_CiiEwsLd_4CGA1CAvaMB&spec=0&rkey=CAESKBkcro_MGujoNP1msrP-QY_6JrJGFSPi2Rjb3DzNJAtczAvNhqjAMOw,file_size=13984]
[CQ:image,file=9E60FE21C78C4664F112B00788E7B5F4.png,url=https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=CgoxNjgzMDE3NjMzEhTGVp9P7AQ05-ZwEWGDkBjbR8D7ORigbSD_CiiEwsLd_4CGA1CAvaMB&spec=0&rkey=CAESKBkcro_MGujoNP1msrP-QY_6JrJGFSPi2Rjb3DzNJAtczAvNhqjAMOw,file_size=12319]
[CQ:image,file=3FB6C1D922161C8A6D4E67005BEF9DA7.png,url=https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=CgoxNjgzMDE3NjMzEhTGVp9P7AQ05-ZwEWGDkBjbR8D7ORigbSD_CiiEwsLd_4CGA1CAvaMB&spec=0&rkey=CAESKBkcro_MGujoNP1msrP-QY_6JrJGFSPi2Rjb3DzNJAtczAvNhqjAMOw,file_size=15157]

[BUG] 1.5.4版私聊超时

系统版本

win11

QQNT 版本

1

NapCat 版本

1.5.4

OneBot 客户端

1

发生了什么?

直接拿1.5.4版覆盖了1.4.2版本后发送http和反向websocket私聊消息全部超时,发送群聊消息正常。
回退了1.4.2版本私聊恢复正常

如何复现

1

期望的结果?

私聊修复。更新需要完全纯净新装吗?

NapCat 运行日志

No response

OneBot 客户端运行日志

No response

发送图片出现错误

系统版本

Ubuntu 20.04

QQNT 版本

QQ_3.2.7_240428_amd64_01

NapCat 版本

1.3.5

OneBot 客户端

0

发生了什么?

发送图片出现error报错,图片正常发送,但是没办法获取消息id撤回消息

如何复现

ws反代hoshinobot框架使用setu_renew插件发送图片时出现报错

期望的结果?

能发图也能撤回

NapCat 运行日志

2024-05-27 19:32:11 [DEBUG] 托尔(311684) 
收到消息 [{"msgId":"7373640790118217299","msgRandom":"2780660784","msgSeq":"13510","cntSeq":"0","chatType":2,"msgType":2,"subMsgType":1,"sendType":0,"senderUid":"u_M0pHtK8wwWxBGGfYMMCizQ","peerUid":"9617","channelId":"","guildId":"","guildCode":"0","fromUid":"0","fromAppid":"0","msgTime":"1716809531","msgMeta":"0x","sendStatus":2,"sendRemarkName":"","sendMemberName":"","sendNickName":"愚人","guildName":"","channelName":"","elements":[{"elementType":1,"elementId":"7373640790118217298","extBufForUI":"0x","textElement":{"content":"色图","atType":0,"atUid":"0","atTinyId":"0","atNtUid":"","subElementType":0,"atChannelId":"0","linkInfo":null,"atRoleId":"0","atRoleColor":0,"atRoleName":"","needNotify":0},"faceElement":null,"marketFaceElement":null,"replyElement":null,"picElement":null,"pttElement":null,"videoElement":null,"grayTipElement":null,"arkElement":null,"fileElement":null,"liveGiftElement":null,"markdownElement":null,"structLongMsgElement":null,"multiForwardMsgElement":null,"giphyElement":null,"walletElement":null,"inlineKeyboardElement":null,"textGiftElement":null,"calendarElement":null,"yoloGameResultElement":null,"avRecordElement":null,"structMsgElement":null,"faceBubbleElement":null,"shareLocationElement":null,"tofuRecordElement":null,"taskTopMsgElement":null,"recommendedMsgElement":null,"actionBarElement":null}],"records":[],"emojiLikesList":[],"commentCnt":"0","directMsgFlag":0,"directMsgMembers":[],"peerName":"test","freqLimitInfo":null,"editable":false,"avatarMeta":"","avatarPendant":"","feedId":"","roleId":"0","timeStamp":"0","clientIdentityInfo":null,"isImportMsg":false,"atType":0,"roleType":0,"fromChannelRoleInfo":{"roleId":"0","name":"","color":0},"fromGuildRoleInfo":{"roleId":"0","name":"","color":0},"levelRoleInfo":{"roleId":"0","name":"","color":0},"recallTime":"0","isOnlineMsg":true,"generalFlags":"0x","clientSeq":"0","fileGroupSize":null,"foldingInfo":null,"multiTransInfo":null,"senderUin":"10554","peerUin":"96177","msgAttrs":{},"anonymousExtInfo":null,"nameType":0,"avatarFlag":0,"extInfoForUI":null,"personalMedal":null,"categoryManage":0,"msgEventInfo":null}] 

2024-05-27 19:32:11 [DEBUG] 托尔(311684) 
记录消息到数据库, 消息长id: 7373640790118217299, 短id: -2147469475 

2024-05-27 19:32:11 [DEBUG] 托尔(311684) 
收到新消息 {"msgId":"7373640790118217299","msgRandom":"2780660784","msgSeq":"13510","cntSeq":"0","chatType":2,"msgType":2,"subMsgType":1,"sendType":0,"senderUid":"u_M0pHtK8wwWxBGGfYMMCizQ","peerUid":"9617","channelId":"","guildId":"","guildCode":"0","fromUid":"0","fromAppid":"0","msgTime":"1716809531","msgMeta":"0x","sendStatus":2,"sendRemarkName":"","sendMemberName":"","sendNickName":"愚人","guildName":"","channelName":"","elements":[{"elementType":1,"elementId":"7373640790118217298","extBufForUI":"0x","textElement":{"content":"色图","atType":0,"atUid":"0","atTinyId":"0","atNtUid":"","subElementType":0,"atChannelId":"0","linkInfo":null,"atRoleId":"0","atRoleColor":0,"atRoleName":"","needNotify":0},"faceElement":null,"marketFaceElement":null,"replyElement":null,"picElement":null,"pttElement":null,"videoElement":null,"grayTipElement":null,"arkElement":null,"fileElement":null,"liveGiftElement":null,"markdownElement":null,"structLongMsgElement":null,"multiForwardMsgElement":null,"giphyElement":null,"walletElement":null,"inlineKeyboardElement":null,"textGiftElement":null,"calendarElement":null,"yoloGameResultElement":null,"avRecordElement":null,"structMsgElement":null,"faceBubbleElement":null,"shareLocationElement":null,"tofuRecordElement":null,"taskTopMsgElement":null,"recommendedMsgElement":null,"actionBarElement":null}],"records":[],"emojiLikesList":[],"commentCnt":"0","directMsgFlag":0,"directMsgMembers":[],"peerName":"test","freqLimitInfo":null,"editable":false,"avatarMeta":"","avatarPendant":"","feedId":"","roleId":"0","timeStamp":"0","clientIdentityInfo":null,"isImportMsg":false,"atType":0,"roleType":0,"fromChannelRoleInfo":{"roleId":"0","name":"","color":0},"fromGuildRoleInfo":{"roleId":"0","name":"","color":0},"levelRoleInfo":{"roleId":"0","name":"","color":0},"recallTime":"0","isOnlineMsg":true,"generalFlags":"0x","clientSeq":"0","fileGroupSize":null,"foldingInfo":null,"multiTransInfo":null,"senderUin":"10554","peerUin":"96177","msgAttrs":{},"anonymousExtInfo":null,"nameType":0,"avatarFlag":0,"extInfoForUI":null,"personalMedal":null,"categoryManage":0,"msgEventInfo":null,"id":-2147469475} 

2024-05-27 19:32:11 [DEBUG] 托尔(311684) 
收到消息:  {"self_id":311684,"user_id":10554,"time":1716809531,"message_id":-2147469475,"message_seq":-2147469475,"real_id":-2147469475,"message_type":"group","sender":{"user_id":10554,"nickname":"愚人","card":"","role":"owner"},"raw_message":"色图","font":14,"sub_type":"normal","message":[{"data":{"text":"色图"},"type":"text"}],"message_format":"array","post_type":"message","group_id":96177} 

2024-05-27 19:32:11 [DEBUG] 托尔(311684) 
ws 消息上报 ws://0.0.0.0:9222/ws {"self_id":311684,"user_id":10554,"time":1716809531,"message_id":-2147469475,"message_seq":-2147469475,"real_id":-2147469475,"message_type":"group","sender":{"user_id":10554,"nickname":"愚人","card":"","role":"owner"},"raw_message":"色图","font":14,"sub_type":"normal","message":[{"data":{"text":"色图"},"type":"text"}],"message_format":"array","post_type":"message","group_id":9615} 

2024-05-27 19:32:11 [DEBUG] 托尔(311684) 
ws 消息上报 ws://172.22.56.47:8080/ws {"self_id":311684,"user_id":10554,"time":1716809531,"message_id":-2147469475,"message_seq":-2147469475,"real_id":-2147469475,"message_type":"group","sender":{"user_id":10554,"nickname":"愚人","card":"","role":"owner"},"raw_message":"色图","font":14,"sub_type":"normal","message":[{"data":{"text":"色图"},"type":"text"}],"message_format":"array","post_type":"message","group_id":9617} 

2024-05-27 19:32:11 [INFO] 托尔(311684) 
群[test(9617)] 愚かな人(10554): 色图
 

2024-05-27 19:32:12 [DEBUG] 托尔(311684) 
收到反向Websocket消息 {"action":"send_msg","params":{"user_id":10554,"message_type":"group","group_id":9617,"message":[{"type":"text","data":{"text":"「公主们的兔女郎」/「蝶天希」\nPID:101303792"}},{"type":"image","data":{"file":"base64:///9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAzKCsADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NX..."}}]},"echo":{"seq":1}} 

2024-05-27 19:32:12 [INFO] 托尔(311684) 
获取文件类型 jpg /root/.config/QQ/NapCat/temp/4c788734-5bd8-4b39-bfe2-adaf45f189e7 

2024-05-27 19:32:12 [DEBUG] 托尔(311684) 
图片信息 {"md5HexStr":"6a4128529dfd84fdb5c8fde49f6d26c2","fileSize":"571217","picWidth":2752,"picHeight":3274,"fileName":"4c788734-5bd8-4b39-bfe2-adaf45f189e7.jpg","sourcePath":"/root/.config/QQ/nt_qq_66f96a7de606c72a4c69795ee69623a0/nt_data/Pic/2024-05/Ori/6a4128529dfd84fdb5c8fde49f6d26c2.jpg","original":true,"picType":1000,"picSubType":0,"fileUuid":"","fileSubId":"","thumbFileSize":0,"summary":""} 

2024-05-27 19:32:12 [INFO] 托尔(311684) 
发送消息 给群聊 群[test(9617)] : 「公主们的兔女郎」/「蝶天希」
PID:101303792

[图片]https://gchat.qpic.cn/gchatpic_new/0/0-0-6A4128529DFD84FDB5C8FDE49F6D26C2/0
 

2024-05-27 19:32:12 [DEBUG] 托尔(311684) 
记录消息到数据库, 消息长id: 7447857824302034051, 短id: -2147469474 

2024-05-27 19:32:13 [ERROR] 托尔(311684) 
发生错误 {"errno":-2,"syscall":"unlink","code":"ENOENT","path":"/root/.config/QQ/NapCat/temp/4c788734-5bd8-4b39-bfe2-adaf45f189e7.jpg"} 

2024-05-27 19:32:13 [DEBUG] 托尔(311684) 
ws 消息上报 ws://172.22.56.47:8080/ws {"status":"failed","retcode":1200,"data":null,"message":"Error: ENOENT: no such file or directory, unlink '/root/.config/QQ/NapCat/temp/4c788734-5bd8-4b39-bfe2-adaf45f189e7.jpg'\n    at Object.unlinkSync (node:fs:1883:3)\n    at /root/qqbot/Napcat/NapCat.linux.x64/napcat.cjs:21726:14801\n    at Array.forEach (<anonymous>)\n    at SendMsg._handle (/root/qqbot/Napcat/NapCat.linux.x64/napcat.cjs:21726:14767)\n    at async SendMsg.websocketHandle (/root/qqbot/Napcat/NapCat.linux.x64/napcat.cjs:21718:8166)\n    at async ReverseWebsocket.onmessage (/root/qqbot/Na...","wording":"Error: ENOENT: no such file or directory, unlink '/root/.config/QQ/NapCat/temp/4c788734-5bd8-4b39-bfe2-adaf45f189e7.jpg'\n    at Object.unlinkSync (node:fs:1883:3)\n    at /root/qqbot/Napcat/NapCat.linux.x64/napcat.cjs:21726:14801\n    at Array.forEach (<anonymous>)\n    at SendMsg._handle (/root/qqbot/Napcat/NapCat.linux.x64/napcat.cjs:21726:14767)\n    at async SendMsg.websocketHandle (/root/qqbot/Napcat/NapCat.linux.x64/napcat.cjs:21718:8166)\n    at async ReverseWebsocket.onmessage (/root/qqbot/Na...","echo":{"seq":1}} 

2024-05-27 19:32:13 [DEBUG] 托尔(311684) 
更新消息, shortId:undefined, seq: 13511, msgId: 7447857824302034051

OneBot 客户端运行日志

这里是反代的报错:
[2024-05-27 19:42:04,386 涩图] INFO: Message -2147469467 triggered send_search_setu.
[2024-05-27 19:42:05,905 涩图] ERROR: <class 'aiocqhttp.exceptions.ActionFailed'> occured when send_search_setu handling message -2147469467.
[2024-05-27 19:42:05,905 涩图] ERROR: <ActionFailed status='failed', retcode=1200, data=None, message="Error: ENOENT: no such file or directory, unlink '/root/.config/QQ/NapCat/temp/ddbc743d-09c4-4bbb-a677-c1d3df2891bd.jpg'\n    at Object.unlinkSync (node:fs:1883:3)\n    at /root/qqbot/Napcat/NapCat.linux.x64/napcat.cjs:21726:14801\n    at Array.forEach (<anonymous>)\n    at SendMsg._handle (/root/qqbot/Napcat/NapCat.linux.x64/napcat.cjs:21726:14767)\n    at async SendMsg.websocketHandle (/root/qqbot/Napcat/NapCat.linux.x64/napcat.cjs:21718:8166)\n    at async ReverseWebsocket.onmessage (/root/qqbot/Napcat/NapCat.linux.x64/napcat.cjs:22353:8613)\n    at async WebSocket.<anonymous> (/root/qqbot/Napcat/NapCat.linux.x64/napcat.cjs:22353:11945)", wording="Error: ENOENT: no such file or directory, unlink '/root/.config/QQ/NapCat/temp/ddbc743d-09c4-4bbb-a677-c1d3df2891bd.jpg'\n    at Object.unlinkSync (node:fs:1883:3)\n    at /root/qqbot/Napcat/NapCat.linux.x64/napcat.cjs:21726:14801\n    at Array.forEach (<anonymous>)\n    at SendMsg._handle (/root/qqbot/Napcat/NapCat.linux.x64/napcat.cjs:21726:14767)\n    at async SendMsg.websocketHandle (/root/qqbot/Napcat/NapCat.linux.x64/napcat.cjs:21718:8166)\n    at async ReverseWebsocket.onmessage (/root/qqbot/Napcat/NapCat.linux.x64/napcat.cjs:22353:8613)\n    at async WebSocket.<anonymous> (/root/qqbot/Napcat/NapCat.linux.x64/napcat.cjs:22353:11945)", echo={'seq': 1}>
Traceback (most recent call last):
  File "/root/qqbot/HoshinoBot/hoshino/msghandler.py", line 28, in handle_message
    await service_func.func(bot, event)
  File "/root/qqbot/HoshinoBot/hoshino/modules/setu_renew/__init__.py", line 291, in send_search_setu
    result_list = await send_msg(msg_list, ev)
  File "/root/qqbot/HoshinoBot/hoshino/modules/setu_renew/__init__.py", line 142, in send_msg
    result_list.append(await hoshino.get_bot().send(ev, msg))
  File "/usr/local/lib/python3.8/dist-packages/aiocqhttp/__init__.py", line 271, in send
    return await self.send_msg(**params)
  File "/usr/local/lib/python3.8/dist-packages/aiocqhttp/__init__.py", line 238, in call_action
    return await self._api.call_action(action=action, **params)
  File "/usr/local/lib/python3.8/dist-packages/aiocqhttp/api_impl.py", line 178, in call_action
    result = await self._wsr_api.call_action(action, **params)
  File "/usr/local/lib/python3.8/dist-packages/aiocqhttp/api_impl.py", line 153, in call_action
    return _handle_api_result(await
  File "/usr/local/lib/python3.8/dist-packages/aiocqhttp/api_impl.py", line 38, in _handle_api_result
    raise ActionFailed(result=result)
aiocqhttp.exceptions.ActionFailed: <ActionFailed status='failed', retcode=1200, data=None, message="Error: ENOENT: no such file or directory, unlink '/root/.config/QQ/NapCat/temp/ddbc743d-09c4-4bbb-a677-c1d3df2891bd.jpg'\n    at Object.unlinkSync (node:fs:1883:3)\n    at /root/qqbot/Napcat/NapCat.linux.x64/napcat.cjs:21726:14801\n    at Array.forEach (<anonymous>)\n    at SendMsg._handle (/root/qqbot/Napcat/NapCat.linux.x64/napcat.cjs:21726:14767)\n    at async SendMsg.websocketHandle (/root/qqbot/Napcat/NapCat.linux.x64/napcat.cjs:21718:8166)\n    at async ReverseWebsocket.onmessage (/root/qqbot/Napcat/NapCat.linux.x64/napcat.cjs:22353:8613)\n    at async WebSocket.<anonymous> (/root/qqbot/Napcat/NapCat.linux.x64/napcat.cjs:22353:11945)", wording="Error: ENOENT: no such file or directory, unlink '/root/.config/QQ/NapCat/temp/ddbc743d-09c4-4bbb-a677-c1d3df2891bd.jpg'\n    at Object.unlinkSync (node:fs:1883:3)\n    at /root/qqbot/Napcat/NapCat.linux.x64/napcat.cjs:21726:14801\n    at Array.forEach (<anonymous>)\n    at SendMsg._handle (/root/qqbot/Napcat/NapCat.linux.x64/napcat.cjs:21726:14767)\n    at async SendMsg.websocketHandle (/root/qqbot/Napcat/NapCat.linux.x64/napcat.cjs:21718:8166)\n    at async ReverseWebsocket.onmessage (/root/qqbot/Napcat/NapCat.linux.x64/napcat.cjs:22353:8613)\n    at async WebSocket.<anonymous> (/root/qqbot/Napcat/NapCat.linux.x64/napcat.cjs:22353:11945)", echo={'seq': 1}>
[2024-05-27 19:42:05,907 nonebot] INFO: Message -2147469467 is ignored: Handled by Hoshino

[BUG]

系统版本

Ubuntu 22.04 server 64bit

QQNT 版本

linuxqq_3.2.7-23361_amd64

NapCat 版本

3.2.7-23361_amd64

OneBot 客户端

ZeroBot-v1.7.5

发生了什么?

image
无法开启反向ws,而且配置应该没错
image

如何复现

在该对应的Ubuntu系统上运行,开启反向ws,会显示报错反向ws连接失败

期望的结果?

开启反向ws成功

NapCat 运行日志

2024-06-05 09:40:25 [INFO] (196264942) | 开始连接反向ws ws://127.0.0.1:5140 
2024-06-05 09:40:25 [INFO] (196264942) | 登录成功! 
2024-06-05 09:40:25 [INFO] (196264942) | {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":5140} 
2024-06-05 09:40:25 [ERROR] (196264942) | 反向ws断开 ws://127.0.0.1:5140 
2024-06-05 09:40:25 [INFO] (196264942) | 账号设备(u_Wcc5rknRRqRO8y5gxMD6sA) 在线状态变更 
2024-06-05 09:40:26 [INFO] wbot(196264942) | [NapCat] 当前版本: 1.5.1 
2024-06-05 09:40:28 [INFO] wbot(196264942) | {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":5140} 
2024-06-05 09:40:28 [ERROR] wbot(196264942) | 反向ws断开 ws://127.0.0.1:5140 
2024-06-05 09:40:31 [INFO] wbot(196264942) | {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":5140} 
2024-06-05 09:40:31 [ERROR] wbot(196264942) | 反向ws断开 ws://127.0.0.1:5140 
2024-06-05 09:40:34 [INFO] wbot(196264942) | {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":5140} 
2024-06-05 09:40:34 [ERROR] wbot(196264942) | 反向ws断开 ws://127.0.0.1:5140 
[BuglyManager.cpp][UploadBugly][107]!!!in UploadBugly.
[NativeCrashHandler.cpp][getCrashDetailBeanFromRecord][52]!!!! in NativeCrashHandler getCrashDetailBeanFromRecord, open file error!!!,dumpFilePath:/root/.config/QQ/crash_files/rqd_record.eup.
[NativeCrashHandler.cpp][uploadCrashEvent][331]get null crashDetailBean, return!
2024-06-05 09:40:37 [INFO] wbot(196264942) | {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":5140} 
2024-06-05 09:40:37 [ERROR] wbot(196264942) | 反向ws断开 ws://127.0.0.1:5140 
2024-06-05 09:40:40 [INFO] wbot(196264942) | {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":5140} 
2024-06-05 09:40:40 [ERROR] wbot(196264942) | 反向ws断开 ws://127.0.0.1:5140 
2024-06-05 09:40:43 [INFO] wbot(196264942) | {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":5140} 
2024-06-05 09:40:43 [ERROR] wbot(196264942) | 反向ws断开 ws://127.0.0.1:5140 
2024-06-05 09:40:46 [INFO] wbot(196264942) | {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":5140} 
2024-06-05 09:40:46 [ERROR] wbot(196264942) | 反向ws断开 ws://127.0.0.1:5140 
2024-06-05 09:40:49 [INFO] wbot(196264942) | {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":5140} 
2024-06-05 09:40:49 [ERROR] wbot(196264942) | 反向ws断开 ws://127.0.0.1:5140 
2024-06-05 09:40:52 [INFO] wbot(196264942) | {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":5140} 
2024-06-05 09:40:52 [ERROR] wbot(196264942) | 反向ws断开 ws://127.0.0.1:5140 
2024-06-05 09:40:55 [INFO] wbot(196264942) | {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":5140} 
2024-06-05 09:40:55 [ERROR] wbot(196264942) | 反向ws断开 ws://127.0.0.1:5140 
2024-06-05 09:40:58 [INFO] wbot(196264942) | {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":5140} 
2024-06-05 09:40:58 [ERROR] wbot(196264942) | 反向ws断开 ws://127.0.0.1:5140 
2024-06-05 09:41:01 [INFO] wbot(196264942) | {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":5140} 
2024-06-05 09:41:01 [ERROR] wbot(196264942) | 反向ws断开 ws://127.0.0.1:5140 
2024-06-05 09:41:04 [INFO] wbot(196264942) | {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":5140} 
2024-06-05 09:41:04 [ERROR] wbot(196264942) | 反向ws断开 ws://127.0.0.1:5140 
2024-06-05 09:41:07 [INFO] wbot(196264942) | {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":5140} 
2024-06-05 09:41:07 [ERROR] wbot(196264942) | 反向ws断开 ws://127.0.0.1:5140 
2024-06-05 09:41:10 [INFO] wbot(196264942) | {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":5140} 
2024-06-05 09:41:10 [ERROR] wbot(196264942) | 反向ws断开 ws://127.0.0.1:5140 
2024-06-05 09:41:13 [INFO] wbot(196264942) | {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":5140} 
2024-06-05 09:41:13 [ERROR] wbot(196264942) | 反向ws断开 ws://127.0.0.1:5140 
2024-06-05 09:41:16 [INFO] wbot(196264942) | {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":5140} 
2024-06-05 09:41:16 [ERROR] wbot(196264942) | 反向ws断开 ws://127.0.0.1:5140 
2024-06-05 09:41:19 [INFO] wbot(196264942) | {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":5140} 
2024-06-05 09:41:19 [ERROR] wbot(196264942) | 反向ws断开 ws://127.0.0.1:5140 
2024-06-05 09:41:22 [INFO] wbot(196264942) | {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":5140} 
2024-06-05 09:41:22 [ERROR] wbot(196264942) | 反向ws断开 ws://127.0.0.1:5140 
2024-06-05 09:41:25 [INFO] wbot(196264942) | {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":5140} 
2024-06-05 09:41:25 [ERROR] wbot(196264942) | 反向ws断开 ws://127.0.0.1:5140 
2024-06-05 09:41:28 [INFO] wbot(196264942) | {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":5140} 
2024-06-05 09:41:28 [ERROR] wbot(196264942) | 反向ws断开 ws://127.0.0.1:5140 
2024-06-05 09:41:31 [INFO] wbot(196264942) | {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":5140} 
2024-06-05 09:41:31 [ERROR] wbot(196264942) | 反向ws断开 ws://127.0.0.1:5140 
2024-06-05 09:41:34 [INFO] wbot(196264942) | {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":5140} 
2024-06-05 09:41:34 [ERROR] wbot(196264942) | 反向ws断开 ws://127.0.0.1:5140 
2024-06-05 09:41:37 [INFO] wbot(196264942) | {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":5140} 
2024-06-05 09:41:37 [ERROR] wbot(196264942) | 反向ws断开 ws://127.0.0.1:5140 
2024-06-05 09:41:40 [INFO] wbot(196264942) | {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":5140} 
2024-06-05 09:41:40 [ERROR] wbot(196264942) | 反向ws断开 ws://127.0.0.1:5140 
2024-06-05 09:41:43 [INFO] wbot(196264942) | {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":5140} 
2024-06-05 09:41:43 [ERROR] wbot(196264942) | 反向ws断开 ws://127.0.0.1:5140 
2024-06-05 09:41:46 [INFO] wbot(196264942) | {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":5140} 
2024-06-05 09:41:46 [ERROR] wbot(196264942) | 反向ws断开 ws://127.0.0.1:5140

OneBot 客户端运行日志

No response

[BUG] 在 Ubuntu 下启动时报错

系统版本

Ubuntu 18.04.4 LTS

QQNT 版本

linuxqq 3.2.7-22741

NapCat 版本

1.1.1

OneBot 客户端

还没开起来

发生了什么?

bash napcat.sh 后程序启动出错:

TypeError: Cannot read properties of undefined (reading 'replace')
    at new ev (/home/ubuntu/stuff/QQNT/NapCat.linux.x64/napcat.cjs:20:103050)
    at Object.<anonymous> (/home/ubuntu/stuff/QQNT/NapCat.linux.x64/napcat.cjs:20:105084)
    at Module._compile (node:internal/modules/cjs/loader:1271:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1326:10)
    at Module.load (node:internal/modules/cjs/loader:1126:32)
    at Module._load (node:internal/modules/cjs/loader:967:12)
    at u._load (node:electron/js2c/asar_bundle:2:14589)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:101:12)
    at node:internal/main/run_main_module:23:47

如何复现

配置文件(onebot11_QQ号.json):

{
  "enableHttp": false,
  "httpPort": 3000,
  "enableWs": true,
  "wsPort": 8080,
  "enableWsReverse": false,
  "wsReverseUrls": [],
  "enableHttpPost": false,
  "httpPostUrls": [],
  "enableHttpHeart": false,
  "httpSecret": "",
  "messagePostFormat": "array",
  "reportSelfMessage": false,
  "debug": false,
  "enableLocalFile2Url": true,
  "heartInterval": 30000,
  "token": "一个token"
}

然后 bash napcat.sh

期望的结果?

程序能够正常启动

NapCat 运行日志

No response

OneBot 客户端运行日志

No response

[BUG] 不兼容旧版本QQ消息的换行符解析

系统版本

Debian 11.9

QQNT 版本

3.2.7_240428

NapCat 版本

1.3.3

OneBot 客户端

overflow 2.16.0-c49aec1-SNAPSHOT

发生了什么?

在接收来自PC端旧版本QQ的消息时,具体版本是9.7.9(29059),当消息包含换行时,napcat接收到的消息如下

"message":[{"data":{"text":"第一行\r第二行"},"type":"text"}]

\r只会被识别为回车符CR,解析后的内容变成以下这样

第二行 group(114514)] user(114514): 第一行

如何复现

使用NT架构之前的PC QQ发送换行内容

期望的结果?

希望能把单独的\r换行符转换为\n,或者\r\n,兼容旧版本客户端发送的消息

"message":[{"data":{"text":"第一行\r第二行"},"type":"text"}]

解析为

群[group(114514)] user(114514): 第一行
第二行

NapCat 运行日志

No response

OneBot 客户端运行日志

No response

[BUG] 退群功能 set_group_leave 失效

系统版本

Ubuntu 22.04.4 LTS

QQNT 版本

Linux 3.2.8-23873 amd64

NapCat 版本

1.4.0

OneBot 客户端

None

发生了什么?

退群api超时失效

如何复现

1.使用 set_group_leave 离开某个群聊
2.群聊为临时讨论组(不确定)
3.群聊关闭搜索(不确定)

期望的结果?

账号退出指定群聊

NapCat 运行日志

无错误日志被打印

OneBot 客户端运行日志

退出群聊失败 || 错误 <class 'nonebot.adapters.onebot.v11.exception.NetworkError'>: NetWorkError(message='WebSocket call api set_group_leave timeout')

[BUG] 启动失败 code: 'ERR_DLOPEN_FAILED'

系统版本

Ubuntu 22.04.3 LTS

QQNT 版本

Linux QQ 2.3.7-23361

NapCat 版本

NapCatQQ v1.2.0(beta)

OneBot 客户端

overflow 216

发生了什么?

执行napcat.sh文件,无法正确启动

如何复现

1.按照教程安装了Linux QQ 2.3.7-23361
但是运行qq命令 提示:
[0506/235513.745721:FATAL:electron_main_delegate.cc(294)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180. Trace/breakpoint trap (core dumped)
因为我的服务器没有gui,不确定这样是否算安装成功

2.运行./napcat.sh命令出现以下输出
`
/home/qq/node_modules/bindings/bindings.js:121
throw e;
^
Error: /home/qq/node_modules/sqlite3/build/Release/node_sqlite3.node: cannot open shared object file: No such file or directory
at process.func [as dlopen] (node:electron/js2c/asar_bundle:2:2792)
at Module._extensions..node (node:internal/modules/cjs/loader:1356:18)
at Object.func [as .node] (node:electron/js2c/asar_bundle:2:2792)
at Module.load (node:internal/modules/cjs/loader:1126:32)
at Module._load (node:internal/modules/cjs/loader:967:12)
at u._load (node:electron/js2c/asar_bundle:2:14589)
at Module.require (node:internal/modules/cjs/loader:1150:19)
at require (node:internal/modules/cjs/helpers:119:18)
at bindings (/home/qq/node_modules/bindings/bindings.js:112:48)
at Object. (/home/qq/node_modules/sqlite3/lib/sqlite3-binding.js:1:37) {
code: 'ERR_DLOPEN_FAILED'
}

Node.js v18.18.2
`

期望的结果?

不出现错误

NapCat 运行日志

No response

OneBot 客户端运行日志

No response

[BUG] get_group_member_info timeout

系统版本

debian

QQNT 版本

最新版

NapCat 版本

最新版

OneBot 客户端

最新版

发生了什么?

get_group_member_info api访问超时

如何复现

await bot.get_group_member_info(group_id = gid, user_id = uid)

期望的结果?

get_group_member_info 获取群成员信息

group_id number (int64) 群号
user_id number (int64) QQ 号
nickname string 昵称
card string 群名片/备注
sex string 性别,male 或 female 或 unknown
age number (int32) 年龄
area string 地区
join_time number (int32) 加群时间戳
last_sent_time number (int32) 最后发言时间戳
level string 成员等级
role string 角色,owner 或 admin 或 member
unfriendly boolean 是否不良记录成员
title string 专属头衔
title_expire_time number (int32) 专属头衔过期时间戳
card_changeable boolean 是否允许修改群名片

NapCat 运行日志

2024-05-24 09:44:57 [INFO] (3243780392) 
{"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"172.17.0.2","port":8890}

OneBot 客户端运行日志

Traceback (most recent call last):
  File "<string>", line 15, in <module>
  File "/usr/local/lib/python3.12/site-packages/nonebot/__init__.py", line 335, in run
    get_driver().run(*args, **kwargs)
  File "/usr/local/lib/python3.12/site-packages/nonebot/drivers/fastapi.py", line 186, in run
    uvicorn.run(
  File "/usr/local/lib/python3.12/site-packages/uvicorn/main.py", line 575, in run
    server.run()
  File "/usr/local/lib/python3.12/site-packages/uvicorn/server.py", line 65, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "/usr/local/lib/python3.12/asyncio/runners.py", line 194, in run
    return runner.run(main)
  File "/usr/local/lib/python3.12/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "/usr/local/lib/python3.12/site-packages/nonebot/message.py", line 466, in check_and_run_matcher
    if not await _check_matcher(
> File "/usr/local/lib/python3.12/site-packages/nonebot/message.py", line 361, in _check_matcher
    if not await Matcher.check_perm(bot, event, stack, dependency_cache):
  File "/usr/local/lib/python3.12/site-packages/nonebot/internal/matcher/matcher.py", line 375, in check_perm
    return event_type == (cls.type or event_type) and await cls.permission(
  File "/usr/local/lib/python3.12/site-packages/nonebot/internal/permission.py", line 73, in __call__
    results = await asyncio.gather(
  File "/usr/local/lib/python3.12/site-packages/nonebot/utils.py", line 236, in run_coro_with_catch
    return await coro
  File "/usr/local/lib/python3.12/site-packages/nonebot/dependencies/__init__.py", line 94, in __call__
    return await cast(Callable[..., Awaitable[R]], self.call)(**values)
  File "/root/data/src/plugins/g_admin.py", line 17, in _g_admin
    info = await bot.get_group_member_info(group_id = gid, user_id = uid)
  File "/usr/local/lib/python3.12/site-packages/nonebot/internal/adapter/bot.py", line 122, in call_api
    raise exception
  File "/usr/local/lib/python3.12/site-packages/nonebot/internal/adapter/bot.py", line 97, in call_api
    result = await self.adapter._call_api(self, api, **data)
  File "/usr/local/lib/python3.12/site-packages/nonebot/adapters/onebot/v11/adapter.py", line 149, in _call_api
    raise NetworkError(f"WebSocket call api {api} timeout") from None
nonebot.adapters.onebot.v11.exception.NetworkError: NetWorkError(message='WebSocket call api get_group_member_info timeout')

[Feature Request] 更好的配置文件组织方式

RT,现有的配置文件(尤其是onebot.json)的可读性较差,可能可以做个改进?

这里列出几条可行的方式

  • 仍然使用 json,但是重新组织结构,把各个连接配置分开
{
    "http": {
        "enable": false,
        // ...
    },
    "ws": {
        // ...
    }
}
  • 换用其他配置格式,如 toml,yml 等

[BUG] 系统强制重启后登录需要重新认证

系统版本

Ubuntu Server 18.04.1 LTS 64bit

QQNT 版本

3.2.7-240428

NapCat 版本

1.3.5

OneBot 客户端

Python 3.7

发生了什么?

在没有正常结束napcat的情况下强制重启(就是内存不足系统卡住的情况下),重新登录账号需要重新认证。

没有验证过正常结束的情况下重启是否需要再次认证。

如何复现

  • 在 tmux 中运行 napcat 并登录账号
  • 直接重启
  • 再次运行发现需要重新手机扫码,手机上查看登陆设备发现与之前不是同一个。

期望的结果?

无需认证,直接登录。

NapCat 运行日志

无异常

OneBot 客户端运行日志

没有

[BUG] 真寻bot的消息全部发送到私聊了

系统版本

Ubuntu 22.04.4 LTS

QQNT 版本

Linux QQ 2.3.7-23361

NapCat 版本

1.3.5

OneBot 客户端

I don't know

发生了什么?

群聊消息私聊发送

如何复现

随便发送bot的一个命令即可

期望的结果?

发送到对应群聊

NapCat 运行日志

2024-05-18 19:13:23 [INFO] - 
正在快速登录  3067656659 

2024-05-18 19:13:24 [INFO] - 
[NapCat]  当前版本: 1.3.5 

2024-05-18 19:13:24 [DEBUG] - 
[NapCat]  当前已是最新版本 

2024-05-18 19:13:25 [DEBUG] - 
配置文件/home/qqbot/napcatqq/config/napcat_3067656659.json已加载 {"fileLog":true,"consoleLog":true,"fileLogLevel":"debug","consoleLogLevel":"info"} 

2024-05-18 19:13:25 [DEBUG] (3067656659) 
本账号数据/缓存目录: /home/qqbot/.config/QQ/NapCat/data 

2024-05-18 19:13:25 [DEBUG] (3067656659) 
数据库中消息最大短id -2147473175 

2024-05-18 19:13:25 [DEBUG] (3067656659) 
ob11 ready 

2024-05-18 19:13:25 [DEBUG] (3067656659) 
配置文件/home/qqbot/napcatqq/config/onebot11_3067656659.json已加载 {"http":{"enable":false,"host":"","port":3000,"secret":"","enableHeart":false,"enablePost":false,"postUrls":[]},"ws":{"enable":true,"host":"","port":6700},"reverseWs":{"enable":true,"urls":["ws://127.0.0.1:2536/OneBotv11","ws://127.0.0.1:14514/onebot/v11/ws","ws://127.0.0.1:5140/onebot","ws://xxx:28280/onebot/v11/ws"]},"debug":false,"heartInterval":30000,"messagePostFormat":"array","enableLocalFile2Url":true,"musicSignUrl":"","reportSelfMessage":false,"token":""} 

2024-05-18 19:13:25 [INFO] (3067656659) 

    HTTP服务 未启动, :3000
    HTTP上报服务 未启动, 上报地址: 
    WebSocket服务 已启动, :6700
    WebSocket反向服务 已启动, 反向地址: ws://127.0.0.1:2536/OneBotv11,ws://127.0.0.1:14514/onebot/v11/ws,ws://127.0.0.1:5140/onebot,ws://xxx:28280/onebot/v11/ws
     

2024-05-18 19:13:25 [INFO] (3067656659) 
ws服务启动成功, :6700 

2024-05-18 19:13:25 [INFO] (3067656659) 
开始连接反向ws ws://127.0.0.1:2536/OneBotv11 

2024-05-18 19:13:25 [DEBUG] (3067656659) 
Trying to connect to the websocket server: ws://127.0.0.1:2536/OneBotv11 

2024-05-18 19:13:25 [INFO] (3067656659) 
开始连接反向ws ws://127.0.0.1:14514/onebot/v11/ws 

2024-05-18 19:13:25 [DEBUG] (3067656659) 
Trying to connect to the websocket server: ws://127.0.0.1:14514/onebot/v11/ws 

2024-05-18 19:13:25 [INFO] (3067656659) 
开始连接反向ws ws://127.0.0.1:5140/onebot 

2024-05-18 19:13:25 [DEBUG] (3067656659) 
Trying to connect to the websocket server: ws://127.0.0.1:5140/onebot 

2024-05-18 19:13:26 [INFO] (3067656659) 
开始连接反向ws ws://xxx:28280/onebot/v11/ws 

2024-05-18 19:13:26 [DEBUG] (3067656659) 
Trying to connect to the websocket server: ws://xxx:28280/onebot/v11/ws 

2024-05-18 19:13:26 [DEBUG] (3067656659) 
ob11 msg listener added 

2024-05-18 19:13:26 [DEBUG] (3067656659) 
ob11 buddy listener added 

2024-05-18 19:13:26 [DEBUG] (3067656659) 
ob11 group listener added 

2024-05-18 19:13:26 [DEBUG] (3067656659) 
Connected to the websocket server: ws://127.0.0.1:2536/OneBotv11 

2024-05-18 19:13:26 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:2536/OneBotv11 {"time":1716030806,"self_id":3067656659,"post_type":"meta_event","meta_event_type":"lifecycle","sub_type":"connect"} 

2024-05-18 19:13:26 [DEBUG] (3067656659) 
Connected to the websocket server: ws://127.0.0.1:5140/onebot 

2024-05-18 19:13:26 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:5140/onebot {"time":1716030806,"self_id":3067656659,"post_type":"meta_event","meta_event_type":"lifecycle","sub_type":"connect"} 

2024-05-18 19:13:26 [DEBUG] (3067656659) 
收到反向Websocket消息 {"action":"get_login_info","params":{},"echo":3736} 

2024-05-18 19:13:26 [DEBUG] (3067656659) 
收到反向Websocket消息 {"action":"get_guild_service_profile","params":{},"echo":3738} 

2024-05-18 19:13:26 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:5140/onebot {"status":"failed","retcode":1404,"data":null,"message":"不支持的api get_guild_service_profile","wording":"不支持的api get_guild_service_profile","echo":3738} 

2024-05-18 19:13:26 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:5140/onebot {"status":"ok","retcode":0,"data":{"user_id":3067656659,"nickname":"Makise Kurisu"},"message":"","wording":"","echo":3736} 

2024-05-18 19:13:26 [INFO] (3067656659) 
ws connect / 

2024-05-18 19:13:26 [DEBUG] (3067656659) 
event上报ws客户端已连接 

2024-05-18 19:13:26 [DEBUG] (3067656659) 
ws 消息上报  {"time":1716030806,"self_id":3067656659,"post_type":"meta_event","meta_event_type":"lifecycle","sub_type":"connect"} 

2024-05-18 19:13:27 [DEBUG] (3067656659) 
收到反向Websocket消息 {"action":"_set_model_show","params":{"model":"TRSS Yunzai ","model_show":"TRSS Yunzai "},"echo":"6a08eb05-2e54-47cd-9b15-b3f07c4200a7"} 

2024-05-18 19:13:27 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:2536/OneBotv11 {"status":"failed","retcode":1404,"data":null,"message":"不支持的api _set_model_show","wording":"不支持的api _set_model_show","echo":"6a08eb05-2e54-47cd-9b15-b3f07c4200a7"} 

2024-05-18 19:13:27 [DEBUG] (3067656659) 
收到反向Websocket消息 {"action":"get_login_info","echo":"9a5cadb5-ec7a-4b55-96d2-f80e31473c37"} 

2024-05-18 19:13:27 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:2536/OneBotv11 {"status":"ok","retcode":0,"data":{"user_id":3067656659,"nickname":"Makise Kurisu"},"message":"","wording":"","echo":"9a5cadb5-ec7a-4b55-96d2-f80e31473c37"} 

2024-05-18 19:13:27 [DEBUG] (3067656659) 
Connected to the websocket server: ws://127.0.0.1:14514/onebot/v11/ws 

2024-05-18 19:13:27 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:14514/onebot/v11/ws {"time":1716030807,"self_id":3067656659,"post_type":"meta_event","meta_event_type":"lifecycle","sub_type":"connect"} 

2024-05-18 19:13:27 [DEBUG] (3067656659) 
Connected to the websocket server: ws://xxx:28280/onebot/v11/ws 

2024-05-18 19:13:27 [DEBUG] (3067656659) 
ws 消息上报 ws://xxx:28280/onebot/v11/ws {"time":1716030807,"self_id":3067656659,"post_type":"meta_event","meta_event_type":"lifecycle","sub_type":"connect"} 

2024-05-18 19:13:28 [DEBUG] (3067656659) 
收到反向Websocket消息 {"action":"get_guild_service_profile","echo":"f837a748-7eca-41b5-8944-a6bb97bba2f8"} 

2024-05-18 19:13:28 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:2536/OneBotv11 {"status":"failed","retcode":1404,"data":null,"message":"不支持的api get_guild_service_profile","wording":"不支持的api get_guild_service_profile","echo":"f837a748-7eca-41b5-8944-a6bb97bba2f8"} 

2024-05-18 19:13:28 [DEBUG] (3067656659) 
收到反向Websocket消息 {"action":"get_online_clients","echo":"4b5eb9d4-c379-4326-8dd8-265dec8f86a0"} 

2024-05-18 19:13:28 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:2536/OneBotv11 {"status":"failed","retcode":1404,"data":null,"message":"不支持的api get_online_clients","wording":"不支持的api get_online_clients","echo":"4b5eb9d4-c379-4326-8dd8-265dec8f86a0"} 

2024-05-18 19:13:28 [DEBUG] (3067656659) 
收到反向Websocket消息 {"action":"get_version_info","echo":"60572720-a1a7-4f63-9ea7-4652a4f193fc"} 

2024-05-18 19:13:28 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:2536/OneBotv11 {"status":"ok","retcode":0,"data":{"app_name":"NapCat.Onebot","protocol_version":"v11","app_version":"1.3.5"},"message":"","wording":"","echo":"60572720-a1a7-4f63-9ea7-4652a4f193fc"} 

2024-05-18 19:13:28 [DEBUG] (3067656659) 
收到反向Websocket消息 {"action":"get_friend_list","echo":"6f6ee269-1f87-4b48-8594-560753d93b1d"} 

2024-05-18 19:13:28 [DEBUG] (3067656659) 
收到反向Websocket消息 {"action":"get_group_list","echo":"e24b5282-3e39-4e3b-9678-bacf56af770c"} 

2024-05-18 19:13:28 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:2536/OneBotv11 {"status":"failed","retcode":1400,"data":null,"message":"must be object","wording":"must be object","echo":null} 

2024-05-18 19:13:28 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:2536/OneBotv11 {"status":"failed","retcode":1400,"data":null,"message":"must be object","wording":"must be object","echo":null} 

2024-05-18 19:13:30 [ERROR] (3067656659) 
getUserDetailInfo timeout 

2024-05-18 19:13:31 [DEBUG] (3067656659) 
收到消息 [{"msgId":"7370296213789612474","msgRandom":"777739746","msgSeq":"10501","cntSeq":"0","chatType":2,"msgType":2,"subMsgType":1,"sendType":0,"senderUid":"u_3cUl26ylTWkrehSaGtp2PQ","peerUid":"826737286","channelId":"","guildId":"","guildCode":"0","fromUid":"0","fromAppid":"0","msgTime":"1716030811","msgMeta":"0x","sendStatus":2,"sendRemarkName":"","sendMemberName":"","sendNickName":"Need For Speed","guildName":"","channelName":"","elements":[{"elementType":1,"elementId":"7370296213789612473","extBufForUI":"0x","textElement":{"content":"真寻签到","atType":0,"atUid":"0","atTinyId":"0","atNtUid":"","subElementType":0,"atChannelId":"0","linkInfo":null,"atRoleId":"0","atRoleColor":0,"atRoleName":"","needNotify":0},"faceElement":null,"marketFaceElement":null,"replyElement":null,"picElement":null,"pttElement":null,"videoElement":null,"grayTipElement":null,"arkElement":null,"fileElement":null,"liveGiftElement":null,"markdownElement":null,"structLongMsgElement":null,"multiForwardMsgElement":null,"giphyElement":null,"walletElement":null,"inlineKeyboardElement":null,"textGiftElement":null,"calendarElement":null,"yoloGameResultElement":null,"avRecordElement":null,"structMsgElement":null,"faceBubbleElement":null,"shareLocationElement":null,"tofuRecordElement":null,"taskTopMsgElement":null,"recommendedMsgElement":null,"actionBarElement":null}],"records":[],"emojiLikesList":[],"commentCnt":"0","directMsgFlag":0,"directMsgMembers":[],"peerName":"绪山真寻、Makise Kurisu","freqLimitInfo":null,"editable":false,"avatarMeta":"","avatarPendant":"","feedId":"","roleId":"0","timeStamp":"0","clientIdentityInfo":null,"isImportMsg":false,"atType":0,"roleType":0,"fromChannelRoleInfo":{"roleId":"0","name":"","color":0},"fromGuildRoleInfo":{"roleId":"0","name":"","color":0},"levelRoleInfo":{"roleId":"0","name":"","color":0},"recallTime":"0","isOnlineMsg":true,"generalFlags":"0x","clientSeq":"0","fileGroupSize":null,"foldingInfo":null,"multiTransInfo":null,"senderUin":"2247403951","peerUin":"826737286","msgAttrs":{},"anonymousExtInfo":null,"nameType":0,"avatarFlag":0,"extInfoForUI":null,"personalMedal":null,"categoryManage":0,"msgEventInfo":null}] 

2024-05-18 19:13:31 [DEBUG] (3067656659) 
记录消息到数据库, 消息长id: 7370296213789612474, 短id: -2147473174 

2024-05-18 19:13:31 [DEBUG] (3067656659) 
收到新消息 {"msgId":"7370296213789612474","msgRandom":"777739746","msgSeq":"10501","cntSeq":"0","chatType":2,"msgType":2,"subMsgType":1,"sendType":0,"senderUid":"u_3cUl26ylTWkrehSaGtp2PQ","peerUid":"826737286","channelId":"","guildId":"","guildCode":"0","fromUid":"0","fromAppid":"0","msgTime":"1716030811","msgMeta":"0x","sendStatus":2,"sendRemarkName":"","sendMemberName":"","sendNickName":"Need For Speed","guildName":"","channelName":"","elements":[{"elementType":1,"elementId":"7370296213789612473","extBufForUI":"0x","textElement":{"content":"真寻签到","atType":0,"atUid":"0","atTinyId":"0","atNtUid":"","subElementType":0,"atChannelId":"0","linkInfo":null,"atRoleId":"0","atRoleColor":0,"atRoleName":"","needNotify":0},"faceElement":null,"marketFaceElement":null,"replyElement":null,"picElement":null,"pttElement":null,"videoElement":null,"grayTipElement":null,"arkElement":null,"fileElement":null,"liveGiftElement":null,"markdownElement":null,"structLongMsgElement":null,"multiForwardMsgElement":null,"giphyElement":null,"walletElement":null,"inlineKeyboardElement":null,"textGiftElement":null,"calendarElement":null,"yoloGameResultElement":null,"avRecordElement":null,"structMsgElement":null,"faceBubbleElement":null,"shareLocationElement":null,"tofuRecordElement":null,"taskTopMsgElement":null,"recommendedMsgElement":null,"actionBarElement":null}],"records":[],"emojiLikesList":[],"commentCnt":"0","directMsgFlag":0,"directMsgMembers":[],"peerName":"绪山真寻、Makise Kurisu","freqLimitInfo":null,"editable":false,"avatarMeta":"","avatarPendant":"","feedId":"","roleId":"0","timeStamp":"0","clientIdentityInfo":null,"isImportMsg":false,"atType":0,"roleType":0,"fromChannelRoleInfo":{"roleId":"0","name":"","color":0},"fromGuildRoleInfo":{"roleId":"0","name":"","color":0},"levelRoleInfo":{"roleId":"0","name":"","color":0},"recallTime":"0","isOnlineMsg":true,"generalFlags":"0x","clientSeq":"0","fileGroupSize":null,"foldingInfo":null,"multiTransInfo":null,"senderUin":"2247403951","peerUin":"826737286","msgAttrs":{},"anonymousExtInfo":null,"nameType":0,"avatarFlag":0,"extInfoForUI":null,"personalMedal":null,"categoryManage":0,"msgEventInfo":null,"id":-2147473174} 

2024-05-18 19:13:31 [DEBUG] (3067656659) 
收到消息:  {"self_id":3067656659,"user_id":2247403951,"time":1716030811,"message_id":-2147473174,"message_seq":-2147473174,"real_id":-2147473174,"message_type":"group","sender":{"user_id":2247403951,"nickname":"Need For Speed","card":"","role":"owner"},"raw_message":"真寻签到","font":14,"sub_type":"normal","message":[{"data":{"text":"真寻签到"},"type":"text"}],"message_format":"array","post_type":"message","group_id":826737286} 

2024-05-18 19:13:31 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:2536/OneBotv11 {"self_id":3067656659,"user_id":2247403951,"time":1716030811,"message_id":-2147473174,"message_seq":-2147473174,"real_id":-2147473174,"message_type":"group","sender":{"user_id":2247403951,"nickname":"Need For Speed","card":"","role":"owner"},"raw_message":"真寻签到","font":14,"sub_type":"normal","message":[{"data":{"text":"真寻签到"},"type":"text"}],"message_format":"array","post_type":"message","group_id":826737286} 

2024-05-18 19:13:31 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:14514/onebot/v11/ws {"self_id":3067656659,"user_id":2247403951,"time":1716030811,"message_id":-2147473174,"message_seq":-2147473174,"real_id":-2147473174,"message_type":"group","sender":{"user_id":2247403951,"nickname":"Need For Speed","card":"","role":"owner"},"raw_message":"真寻签到","font":14,"sub_type":"normal","message":[{"data":{"text":"真寻签到"},"type":"text"}],"message_format":"array","post_type":"message","group_id":826737286} 

2024-05-18 19:13:31 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:5140/onebot {"self_id":3067656659,"user_id":2247403951,"time":1716030811,"message_id":-2147473174,"message_seq":-2147473174,"real_id":-2147473174,"message_type":"group","sender":{"user_id":2247403951,"nickname":"Need For Speed","card":"","role":"owner"},"raw_message":"真寻签到","font":14,"sub_type":"normal","message":[{"data":{"text":"真寻签到"},"type":"text"}],"message_format":"array","post_type":"message","group_id":826737286} 

2024-05-18 19:13:31 [DEBUG] (3067656659) 
ws 消息上报 ws://xxx:28280/onebot/v11/ws {"self_id":3067656659,"user_id":2247403951,"time":1716030811,"message_id":-2147473174,"message_seq":-2147473174,"real_id":-2147473174,"message_type":"group","sender":{"user_id":2247403951,"nickname":"Need For Speed","card":"","role":"owner"},"raw_message":"真寻签到","font":14,"sub_type":"normal","message":[{"data":{"text":"真寻签到"},"type":"text"}],"message_format":"array","post_type":"message","group_id":826737286} 

2024-05-18 19:13:31 [DEBUG] (3067656659) 
ws 消息上报  {"self_id":3067656659,"user_id":2247403951,"time":1716030811,"message_id":-2147473174,"message_seq":-2147473174,"real_id":-2147473174,"message_type":"group","sender":{"user_id":2247403951,"nickname":"Need For Speed","card":"","role":"owner"},"raw_message":"真寻签到","font":14,"sub_type":"normal","message":[{"data":{"text":"真寻签到"},"type":"text"}],"message_format":"array","post_type":"message","group_id":826737286} 

2024-05-18 19:13:31 [INFO] (3067656659) 
群[Need For Speed、绪山真寻、Makise Kurisu(826737286)] Need For Speed(2247403951): 真寻签到
 

2024-05-18 19:13:31 [DEBUG] (3067656659) 
收到反向Websocket消息 {"action":"get_group_list","params":{},"echo":3740} 

2024-05-18 19:13:32 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:5140/onebot {"status":"ok","retcode":0,"data":[{"group_id":991915534,"group_name":"一群勾八玩意<$ÿĀ\u0011\u0010>","member_count":51,"max_member_count":200},{"group_id":950909053,"group_name":"Low、超、克里斯缇娜、琳一、の、Need For Speed、Makise Kurisu","member_count":7,"max_member_count":200},{"group_id":768556279,"group_name":"NSG Gaming Club","member_count":185,"max_member_count":500},{"group_id":531452505,"group_name":"ACG●爱动漫●二次元","member_count":981,"max_member_count":1000},{"group_id":826737286,"group_name":"Need For Speed、绪山真寻、Makise Kurisu","member_count":3,"max_member_count":200},{"group_id":557989346,"group_name":"就是这么","member_count":21,"max_member_count":200},{"group_id":628966760,"group_name":"修仙","member_count":21,"max_member_count":200}],"message":"","wording":"","echo":3740} 

2024-05-18 19:13:32 [DEBUG] (3067656659) 
收到正向Websocket消息 {"action":"mark_msg_as_read","params":{"message_id":-2147473174},"echo":1824} 

2024-05-18 19:13:32 [DEBUG] (3067656659) 
ws 消息上报  {"status":"ok","retcode":0,"data":null,"message":"","wording":"","echo":1824} 

2024-05-18 19:13:32 [DEBUG] (3067656659) 
收到反向Websocket消息 {"action":"send_msg","params":{"user_id":2247403951,"group_id":826737286,"message_type":"group","message":[{"type":"at","data":{"qq":"2247403951"}},{"type":"text","data":{"text":" "}},{"type":"image","data":{"file":"file:///home/qqbot/zhenxun_bot/resources/image/sign/today_card/2247403951_826737286_sign_2024-05-18.png","type":null,"cache":"true","proxy":"true","timeout":null}}]},"echo":"2029"} 

2024-05-18 19:13:33 [DEBUG] (3067656659) 
图片信息 {"md5HexStr":"68f986110b1bbbc527fa41af716a22f5","fileSize":"281315","picWidth":876,"picHeight":424,"fileName":"2247403951_826737286_sign_2024-05-18.png","sourcePath":"/home/qqbot/.config/QQ/nt_qq_778a6a3e21f0e901ee9f978affe4ee69/nt_data/Pic/2024-05/Ori/68f986110b1bbbc527fa41af716a22f5.png","original":true,"picType":1000,"picSubType":0,"fileUuid":"","fileSubId":"","thumbFileSize":0,"summary":""} 

2024-05-18 19:13:33 [INFO] (3067656659) 
发送消息 给私聊 2247403951: 
[图片]https://gchat.qpic.cn/gchatpic_new/0/0-0-68F986110B1BBBC527FA41AF716A22F5/0
 

2024-05-18 19:13:33 [DEBUG] (3067656659) 
记录消息到数据库, 消息长id: 7370296216734557529, 短id: -2147473173 

2024-05-18 19:13:33 [DEBUG] (3067656659) 
更新消息, shortId:undefined, seq: 1382, msgId: 7370296216734557529 

2024-05-18 19:13:33 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:14514/onebot/v11/ws {"status":"ok","retcode":0,"data":{"message_id":-2147473173},"message":"","wording":"","echo":"2029"} 

2024-05-18 19:13:33 [DEBUG] (3067656659) 
收到消息 [{"msgId":"7370296221635430378","msgRandom":"151089141","msgSeq":"10502","cntSeq":"0","chatType":2,"msgType":2,"subMsgType":1,"sendType":0,"senderUid":"u_3cUl26ylTWkrehSaGtp2PQ","peerUid":"826737286","channelId":"","guildId":"","guildCode":"0","fromUid":"0","fromAppid":"0","msgTime":"1716030813","msgMeta":"0x","sendStatus":2,"sendRemarkName":"","sendMemberName":"","sendNickName":"Need For Speed","guildName":"","channelName":"","elements":[{"elementType":1,"elementId":"7370296221635430377","extBufForUI":"0x","textElement":{"content":"真寻帮助","atType":0,"atUid":"0","atTinyId":"0","atNtUid":"","subElementType":0,"atChannelId":"0","linkInfo":null,"atRoleId":"0","atRoleColor":0,"atRoleName":"","needNotify":0},"faceElement":null,"marketFaceElement":null,"replyElement":null,"picElement":null,"pttElement":null,"videoElement":null,"grayTipElement":null,"arkElement":null,"fileElement":null,"liveGiftElement":null,"markdownElement":null,"structLongMsgElement":null,"multiForwardMsgElement":null,"giphyElement":null,"walletElement":null,"inlineKeyboardElement":null,"textGiftElement":null,"calendarElement":null,"yoloGameResultElement":null,"avRecordElement":null,"structMsgElement":null,"faceBubbleElement":null,"shareLocationElement":null,"tofuRecordElement":null,"taskTopMsgElement":null,"recommendedMsgElement":null,"actionBarElement":null}],"records":[],"emojiLikesList":[],"commentCnt":"0","directMsgFlag":0,"directMsgMembers":[],"peerName":"绪山真寻、Makise Kurisu","freqLimitInfo":null,"editable":false,"avatarMeta":"","avatarPendant":"","feedId":"","roleId":"0","timeStamp":"0","clientIdentityInfo":null,"isImportMsg":false,"atType":0,"roleType":0,"fromChannelRoleInfo":{"roleId":"0","name":"","color":0},"fromGuildRoleInfo":{"roleId":"0","name":"","color":0},"levelRoleInfo":{"roleId":"0","name":"","color":0},"recallTime":"0","isOnlineMsg":true,"generalFlags":"0x","clientSeq":"0","fileGroupSize":null,"foldingInfo":null,"multiTransInfo":null,"senderUin":"2247403951","peerUin":"826737286","msgAttrs":{},"anonymousExtInfo":null,"nameType":0,"avatarFlag":0,"extInfoForUI":null,"personalMedal":null,"categoryManage":0,"msgEventInfo":null}] 

2024-05-18 19:13:33 [DEBUG] (3067656659) 
记录消息到数据库, 消息长id: 7370296221635430378, 短id: -2147473172 

2024-05-18 19:13:33 [DEBUG] (3067656659) 
收到新消息 {"msgId":"7370296221635430378","msgRandom":"151089141","msgSeq":"10502","cntSeq":"0","chatType":2,"msgType":2,"subMsgType":1,"sendType":0,"senderUid":"u_3cUl26ylTWkrehSaGtp2PQ","peerUid":"826737286","channelId":"","guildId":"","guildCode":"0","fromUid":"0","fromAppid":"0","msgTime":"1716030813","msgMeta":"0x","sendStatus":2,"sendRemarkName":"","sendMemberName":"","sendNickName":"Need For Speed","guildName":"","channelName":"","elements":[{"elementType":1,"elementId":"7370296221635430377","extBufForUI":"0x","textElement":{"content":"真寻帮助","atType":0,"atUid":"0","atTinyId":"0","atNtUid":"","subElementType":0,"atChannelId":"0","linkInfo":null,"atRoleId":"0","atRoleColor":0,"atRoleName":"","needNotify":0},"faceElement":null,"marketFaceElement":null,"replyElement":null,"picElement":null,"pttElement":null,"videoElement":null,"grayTipElement":null,"arkElement":null,"fileElement":null,"liveGiftElement":null,"markdownElement":null,"structLongMsgElement":null,"multiForwardMsgElement":null,"giphyElement":null,"walletElement":null,"inlineKeyboardElement":null,"textGiftElement":null,"calendarElement":null,"yoloGameResultElement":null,"avRecordElement":null,"structMsgElement":null,"faceBubbleElement":null,"shareLocationElement":null,"tofuRecordElement":null,"taskTopMsgElement":null,"recommendedMsgElement":null,"actionBarElement":null}],"records":[],"emojiLikesList":[],"commentCnt":"0","directMsgFlag":0,"directMsgMembers":[],"peerName":"绪山真寻、Makise Kurisu","freqLimitInfo":null,"editable":false,"avatarMeta":"","avatarPendant":"","feedId":"","roleId":"0","timeStamp":"0","clientIdentityInfo":null,"isImportMsg":false,"atType":0,"roleType":0,"fromChannelRoleInfo":{"roleId":"0","name":"","color":0},"fromGuildRoleInfo":{"roleId":"0","name":"","color":0},"levelRoleInfo":{"roleId":"0","name":"","color":0},"recallTime":"0","isOnlineMsg":true,"generalFlags":"0x","clientSeq":"0","fileGroupSize":null,"foldingInfo":null,"multiTransInfo":null,"senderUin":"2247403951","peerUin":"826737286","msgAttrs":{},"anonymousExtInfo":null,"nameType":0,"avatarFlag":0,"extInfoForUI":null,"personalMedal":null,"categoryManage":0,"msgEventInfo":null,"id":-2147473172} 

2024-05-18 19:13:33 [DEBUG] (3067656659) 
收到消息:  {"self_id":3067656659,"user_id":2247403951,"time":1716030813,"message_id":-2147473172,"message_seq":-2147473172,"real_id":-2147473172,"message_type":"group","sender":{"user_id":2247403951,"nickname":"Need For Speed","card":"","role":"owner"},"raw_message":"真寻帮助","font":14,"sub_type":"normal","message":[{"data":{"text":"真寻帮助"},"type":"text"}],"message_format":"array","post_type":"message","group_id":826737286} 

2024-05-18 19:13:33 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:2536/OneBotv11 {"self_id":3067656659,"user_id":2247403951,"time":1716030813,"message_id":-2147473172,"message_seq":-2147473172,"real_id":-2147473172,"message_type":"group","sender":{"user_id":2247403951,"nickname":"Need For Speed","card":"","role":"owner"},"raw_message":"真寻帮助","font":14,"sub_type":"normal","message":[{"data":{"text":"真寻帮助"},"type":"text"}],"message_format":"array","post_type":"message","group_id":826737286} 

2024-05-18 19:13:33 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:14514/onebot/v11/ws {"self_id":3067656659,"user_id":2247403951,"time":1716030813,"message_id":-2147473172,"message_seq":-2147473172,"real_id":-2147473172,"message_type":"group","sender":{"user_id":2247403951,"nickname":"Need For Speed","card":"","role":"owner"},"raw_message":"真寻帮助","font":14,"sub_type":"normal","message":[{"data":{"text":"真寻帮助"},"type":"text"}],"message_format":"array","post_type":"message","group_id":826737286} 

2024-05-18 19:13:33 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:5140/onebot {"self_id":3067656659,"user_id":2247403951,"time":1716030813,"message_id":-2147473172,"message_seq":-2147473172,"real_id":-2147473172,"message_type":"group","sender":{"user_id":2247403951,"nickname":"Need For Speed","card":"","role":"owner"},"raw_message":"真寻帮助","font":14,"sub_type":"normal","message":[{"data":{"text":"真寻帮助"},"type":"text"}],"message_format":"array","post_type":"message","group_id":826737286} 

2024-05-18 19:13:34 [DEBUG] (3067656659) 
ws 消息上报 ws://xxx:28280/onebot/v11/ws {"self_id":3067656659,"user_id":2247403951,"time":1716030813,"message_id":-2147473172,"message_seq":-2147473172,"real_id":-2147473172,"message_type":"group","sender":{"user_id":2247403951,"nickname":"Need For Speed","card":"","role":"owner"},"raw_message":"真寻帮助","font":14,"sub_type":"normal","message":[{"data":{"text":"真寻帮助"},"type":"text"}],"message_format":"array","post_type":"message","group_id":826737286} 

2024-05-18 19:13:34 [DEBUG] (3067656659) 
ws 消息上报  {"self_id":3067656659,"user_id":2247403951,"time":1716030813,"message_id":-2147473172,"message_seq":-2147473172,"real_id":-2147473172,"message_type":"group","sender":{"user_id":2247403951,"nickname":"Need For Speed","card":"","role":"owner"},"raw_message":"真寻帮助","font":14,"sub_type":"normal","message":[{"data":{"text":"真寻帮助"},"type":"text"}],"message_format":"array","post_type":"message","group_id":826737286} 

2024-05-18 19:13:34 [INFO] (3067656659) 
群[Need For Speed、绪山真寻、Makise Kurisu(826737286)] Need For Speed(2247403951): 真寻帮助
 

2024-05-18 19:13:34 [DEBUG] (3067656659) 
收到反向Websocket消息 {"action":"get_group_list","params":{},"echo":3742} 

2024-05-18 19:13:34 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:5140/onebot {"status":"ok","retcode":0,"data":[{"group_id":991915534,"group_name":"一群勾八玩意<$ÿĀ\u0011\u0010>","member_count":51,"max_member_count":200},{"group_id":950909053,"group_name":"Low、超、克里斯缇娜、琳一、の、Need For Speed、Makise Kurisu","member_count":7,"max_member_count":200},{"group_id":768556279,"group_name":"NSG Gaming Club","member_count":185,"max_member_count":500},{"group_id":531452505,"group_name":"ACG●爱动漫●二次元","member_count":981,"max_member_count":1000},{"group_id":826737286,"group_name":"Need For Speed、绪山真寻、Makise Kurisu","member_count":3,"max_member_count":200},{"group_id":557989346,"group_name":"就是这么","member_count":21,"max_member_count":200},{"group_id":628966760,"group_name":"修仙","member_count":21,"max_member_count":200}],"message":"","wording":"","echo":3742} 

2024-05-18 19:13:34 [DEBUG] (3067656659) 
收到正向Websocket消息 {"action":"mark_msg_as_read","params":{"message_id":-2147473172},"echo":1825} 

2024-05-18 19:13:34 [DEBUG] (3067656659) 
ws 消息上报  {"status":"ok","retcode":0,"data":null,"message":"","wording":"","echo":1825} 

2024-05-18 19:13:34 [DEBUG] (3067656659) 
收到反向Websocket消息 {"action":"send_msg","params":{"user_id":2247403951,"group_id":826737286,"message_type":"group","message":[{"type":"image","data":{"file":"file:///home/qqbot/zhenxun_bot/data/group_help/826737286.png","type":null,"cache":"true","proxy":"true","timeout":null}}]},"echo":"2030"} 

2024-05-18 19:13:34 [DEBUG] (3067656659) 
图片信息 {"md5HexStr":"17f98eb5a0318ac459e36089925e742c","fileSize":"995198","picWidth":1195,"picHeight":1195,"fileName":"826737286.png","sourcePath":"/home/qqbot/.config/QQ/nt_qq_778a6a3e21f0e901ee9f978affe4ee69/nt_data/Pic/2024-05/Ori/17f98eb5a0318ac459e36089925e742c.png","original":true,"picType":1000,"picSubType":0,"fileUuid":"","fileSubId":"","thumbFileSize":0,"summary":""} 

2024-05-18 19:13:34 [INFO] (3067656659) 
发送消息 给私聊 2247403951: 
[图片]https://gchat.qpic.cn/gchatpic_new/0/0-0-17F98EB5A0318AC459E36089925E742C/0
 

2024-05-18 19:13:34 [DEBUG] (3067656659) 
记录消息到数据库, 消息长id: 7370296221635430379, 短id: -2147473171 

2024-05-18 19:13:35 [DEBUG] (3067656659) 
更新消息, shortId:undefined, seq: 1383, msgId: 7370296221635430379 

2024-05-18 19:13:35 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:14514/onebot/v11/ws {"status":"ok","retcode":0,"data":{"message_id":-2147473171},"message":"","wording":"","echo":"2030"} 

2024-05-18 19:13:38 [DEBUG] (3067656659) 
收到反向Websocket消息 {"action":"get_group_member_list","params":{"group_id":950909053},"echo":"2031"} 

2024-05-18 19:13:38 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:14514/onebot/v11/ws {"status":"failed","retcode":1400,"data":null,"message":"must have required property 'user_id'","wording":"must have required property 'user_id'","echo":null} 

2024-05-18 19:13:51 [DEBUG] (3067656659) 
收到消息 [{"msgId":"7370296300108342055","msgRandom":"239480048","msgSeq":"3207525","cntSeq":"0","chatType":2,"msgType":2,"subMsgType":1,"sendType":0,"senderUid":"u_vwJ71hg9JvatQlbJk5ORkw","peerUid":"531452505","channelId":"","guildId":"","guildCode":"0","fromUid":"0","fromAppid":"0","msgTime":"1716030830","msgMeta":"0x","sendStatus":2,"sendRemarkName":"","sendMemberName":"","sendNickName":"青淡","guildName":"","channelName":"","elements":[{"elementType":1,"elementId":"7370296300108342054","extBufForUI":"0x","textElement":{"content":"中锋?","atType":0,"atUid":"0","atTinyId":"0","atNtUid":"","subElementType":0,"atChannelId":"0","linkInfo":null,"atRoleId":"0","atRoleColor":0,"atRoleName":"","needNotify":0},"faceElement":null,"marketFaceElement":null,"replyElement":null,"picElement":null,"pttElement":null,"videoElement":null,"grayTipElement":null,"arkElement":null,"fileElement":null,"liveGiftElement":null,"markdownElement":null,"structLongMsgElement":null,"multiForwardMsgElement":null,"giphyElement":null,"walletElement":null,"inlineKeyboardElement":null,"textGiftElement":null,"calendarElement":null,"yoloGameResultElement":null,"avRecordElement":null,"structMsgElement":null,"faceBubbleElement":null,"shareLocationElement":null,"tofuRecordElement":null,"taskTopMsgElement":null,"recommendedMsgElement":null,"actionBarElement":null}],"records":[],"emojiLikesList":[],"commentCnt":"0","directMsgFlag":0,"directMsgMembers":[],"peerName":"ACG●爱动漫●二次元","freqLimitInfo":null,"editable":false,"avatarMeta":"","avatarPendant":"","feedId":"","roleId":"0","timeStamp":"0","clientIdentityInfo":null,"isImportMsg":false,"atType":0,"roleType":0,"fromChannelRoleInfo":{"roleId":"0","name":"","color":0},"fromGuildRoleInfo":{"roleId":"0","name":"","color":0},"levelRoleInfo":{"roleId":"0","name":"","color":0},"recallTime":"0","isOnlineMsg":true,"generalFlags":"0x","clientSeq":"0","fileGroupSize":null,"foldingInfo":null,"multiTransInfo":null,"senderUin":"2645590646","peerUin":"531452505","msgAttrs":{},"anonymousExtInfo":null,"nameType":0,"avatarFlag":0,"extInfoForUI":null,"personalMedal":null,"categoryManage":0,"msgEventInfo":null}] 

2024-05-18 19:13:51 [DEBUG] (3067656659) 
记录消息到数据库, 消息长id: 7370296300108342055, 短id: -2147473170 

2024-05-18 19:13:51 [DEBUG] (3067656659) 
收到新消息 {"msgId":"7370296300108342055","msgRandom":"239480048","msgSeq":"3207525","cntSeq":"0","chatType":2,"msgType":2,"subMsgType":1,"sendType":0,"senderUid":"u_vwJ71hg9JvatQlbJk5ORkw","peerUid":"531452505","channelId":"","guildId":"","guildCode":"0","fromUid":"0","fromAppid":"0","msgTime":"1716030830","msgMeta":"0x","sendStatus":2,"sendRemarkName":"","sendMemberName":"","sendNickName":"青淡","guildName":"","channelName":"","elements":[{"elementType":1,"elementId":"7370296300108342054","extBufForUI":"0x","textElement":{"content":"中锋?","atType":0,"atUid":"0","atTinyId":"0","atNtUid":"","subElementType":0,"atChannelId":"0","linkInfo":null,"atRoleId":"0","atRoleColor":0,"atRoleName":"","needNotify":0},"faceElement":null,"marketFaceElement":null,"replyElement":null,"picElement":null,"pttElement":null,"videoElement":null,"grayTipElement":null,"arkElement":null,"fileElement":null,"liveGiftElement":null,"markdownElement":null,"structLongMsgElement":null,"multiForwardMsgElement":null,"giphyElement":null,"walletElement":null,"inlineKeyboardElement":null,"textGiftElement":null,"calendarElement":null,"yoloGameResultElement":null,"avRecordElement":null,"structMsgElement":null,"faceBubbleElement":null,"shareLocationElement":null,"tofuRecordElement":null,"taskTopMsgElement":null,"recommendedMsgElement":null,"actionBarElement":null}],"records":[],"emojiLikesList":[],"commentCnt":"0","directMsgFlag":0,"directMsgMembers":[],"peerName":"ACG●爱动漫●二次元","freqLimitInfo":null,"editable":false,"avatarMeta":"","avatarPendant":"","feedId":"","roleId":"0","timeStamp":"0","clientIdentityInfo":null,"isImportMsg":false,"atType":0,"roleType":0,"fromChannelRoleInfo":{"roleId":"0","name":"","color":0},"fromGuildRoleInfo":{"roleId":"0","name":"","color":0},"levelRoleInfo":{"roleId":"0","name":"","color":0},"recallTime":"0","isOnlineMsg":true,"generalFlags":"0x","clientSeq":"0","fileGroupSize":null,"foldingInfo":null,"multiTransInfo":null,"senderUin":"2645590646","peerUin":"531452505","msgAttrs":{},"anonymousExtInfo":null,"nameType":0,"avatarFlag":0,"extInfoForUI":null,"personalMedal":null,"categoryManage":0,"msgEventInfo":null,"id":-2147473170} 

2024-05-18 19:13:51 [DEBUG] (3067656659) 
收到消息:  {"self_id":3067656659,"user_id":2645590646,"time":1716030830,"message_id":-2147473170,"message_seq":-2147473170,"real_id":-2147473170,"message_type":"group","sender":{"user_id":2645590646,"nickname":"青淡","card":"","role":"member"},"raw_message":"中锋?","font":14,"sub_type":"normal","message":[{"data":{"text":"中锋?"},"type":"text"}],"message_format":"array","post_type":"message","group_id":531452505} 

2024-05-18 19:13:51 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:2536/OneBotv11 {"self_id":3067656659,"user_id":2645590646,"time":1716030830,"message_id":-2147473170,"message_seq":-2147473170,"real_id":-2147473170,"message_type":"group","sender":{"user_id":2645590646,"nickname":"青淡","card":"","role":"member"},"raw_message":"中锋?","font":14,"sub_type":"normal","message":[{"data":{"text":"中锋?"},"type":"text"}],"message_format":"array","post_type":"message","group_id":531452505} 

2024-05-18 19:13:51 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:14514/onebot/v11/ws {"self_id":3067656659,"user_id":2645590646,"time":1716030830,"message_id":-2147473170,"message_seq":-2147473170,"real_id":-2147473170,"message_type":"group","sender":{"user_id":2645590646,"nickname":"青淡","card":"","role":"member"},"raw_message":"中锋?","font":14,"sub_type":"normal","message":[{"data":{"text":"中锋?"},"type":"text"}],"message_format":"array","post_type":"message","group_id":531452505} 

2024-05-18 19:13:51 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:5140/onebot {"self_id":3067656659,"user_id":2645590646,"time":1716030830,"message_id":-2147473170,"message_seq":-2147473170,"real_id":-2147473170,"message_type":"group","sender":{"user_id":2645590646,"nickname":"青淡","card":"","role":"member"},"raw_message":"中锋?","font":14,"sub_type":"normal","message":[{"data":{"text":"中锋?"},"type":"text"}],"message_format":"array","post_type":"message","group_id":531452505} 

2024-05-18 19:13:51 [DEBUG] (3067656659) 
ws 消息上报 ws://xxx:28280/onebot/v11/ws {"self_id":3067656659,"user_id":2645590646,"time":1716030830,"message_id":-2147473170,"message_seq":-2147473170,"real_id":-2147473170,"message_type":"group","sender":{"user_id":2645590646,"nickname":"青淡","card":"","role":"member"},"raw_message":"中锋?","font":14,"sub_type":"normal","message":[{"data":{"text":"中锋?"},"type":"text"}],"message_format":"array","post_type":"message","group_id":531452505} 

2024-05-18 19:13:51 [DEBUG] (3067656659) 
ws 消息上报  {"self_id":3067656659,"user_id":2645590646,"time":1716030830,"message_id":-2147473170,"message_seq":-2147473170,"real_id":-2147473170,"message_type":"group","sender":{"user_id":2645590646,"nickname":"青淡","card":"","role":"member"},"raw_message":"中锋?","font":14,"sub_type":"normal","message":[{"data":{"text":"中锋?"},"type":"text"}],"message_format":"array","post_type":"message","group_id":531452505} 

2024-05-18 19:13:51 [INFO] (3067656659) 
群[ACG●爱动漫●二次元(531452505)] 青淡(2645590646): 中锋?
 

2024-05-18 19:13:51 [DEBUG] (3067656659) 
收到反向Websocket消息 {"action":"get_group_list","params":{},"echo":3744} 

2024-05-18 19:13:51 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:5140/onebot {"status":"ok","retcode":0,"data":[{"group_id":991915534,"group_name":"一群勾八玩意<$ÿĀ\u0011\u0010>","member_count":51,"max_member_count":200},{"group_id":950909053,"group_name":"Low、超、克里斯缇娜、琳一、の、Need For Speed、Makise Kurisu","member_count":7,"max_member_count":200},{"group_id":768556279,"group_name":"NSG Gaming Club","member_count":185,"max_member_count":500},{"group_id":531452505,"group_name":"ACG●爱动漫●二次元","member_count":981,"max_member_count":1000},{"group_id":826737286,"group_name":"Need For Speed、绪山真寻、Makise Kurisu","member_count":3,"max_member_count":200},{"group_id":557989346,"group_name":"就是这么","member_count":21,"max_member_count":200},{"group_id":628966760,"group_name":"修仙","member_count":21,"max_member_count":200}],"message":"","wording":"","echo":3744} 

2024-05-18 19:13:51 [DEBUG] (3067656659) 
收到正向Websocket消息 {"action":"mark_msg_as_read","params":{"message_id":-2147473170},"echo":1826} 

2024-05-18 19:13:51 [DEBUG] (3067656659) 
ws 消息上报  {"status":"ok","retcode":0,"data":null,"message":"","wording":"","echo":1826} 

2024-05-18 19:13:55 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:2536/OneBotv11 {"time":1716030835,"self_id":3067656659,"post_type":"meta_event","meta_event_type":"heartbeat","status":{"online":true,"good":true},"interval":30000} 

2024-05-18 19:13:55 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:14514/onebot/v11/ws {"time":1716030835,"self_id":3067656659,"post_type":"meta_event","meta_event_type":"heartbeat","status":{"online":true,"good":true},"interval":30000} 

2024-05-18 19:13:55 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:5140/onebot {"time":1716030835,"self_id":3067656659,"post_type":"meta_event","meta_event_type":"heartbeat","status":{"online":true,"good":true},"interval":30000} 

2024-05-18 19:13:56 [DEBUG] (3067656659) 
ws 消息上报 ws://xxx:28280/onebot/v11/ws {"time":1716030836,"self_id":3067656659,"post_type":"meta_event","meta_event_type":"heartbeat","status":{"online":true,"good":true},"interval":30000} 

2024-05-18 19:13:56 [DEBUG] (3067656659) 
ws 消息上报  {"time":1716030836,"self_id":3067656659,"post_type":"meta_event","meta_event_type":"heartbeat","status":{"online":true,"good":true},"interval":30000} 

2024-05-18 19:14:08 [DEBUG] (3067656659) 
收到反向Websocket消息 {"action":"get_group_member_list","params":{"group_id":768556279},"echo":"2032"} 

2024-05-18 19:14:08 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:14514/onebot/v11/ws {"status":"failed","retcode":1400,"data":null,"message":"must have required property 'user_id'","wording":"must have required property 'user_id'","echo":null} 

2024-05-18 19:14:08 [DEBUG] (3067656659) 
收到消息 [{"msgId":"7370296371570544854","msgRandom":"461208027","msgSeq":"3207526","cntSeq":"0","chatType":2,"msgType":2,"subMsgType":1,"sendType":0,"senderUid":"u_J3qCcUaATiANQAtndZQDHw","peerUid":"531452505","channelId":"","guildId":"","guildCode":"0","fromUid":"0","fromAppid":"0","msgTime":"1716030848","msgMeta":"0x","sendStatus":2,"sendRemarkName":"","sendMemberName":"","sendNickName":"🍂","guildName":"","channelName":"","elements":[{"elementType":1,"elementId":"7370296371570544853","extBufForUI":"0x","textElement":{"content":"对","atType":0,"atUid":"0","atTinyId":"0","atNtUid":"","subElementType":0,"atChannelId":"0","linkInfo":null,"atRoleId":"0","atRoleColor":0,"atRoleName":"","needNotify":0},"faceElement":null,"marketFaceElement":null,"replyElement":null,"picElement":null,"pttElement":null,"videoElement":null,"grayTipElement":null,"arkElement":null,"fileElement":null,"liveGiftElement":null,"markdownElement":null,"structLongMsgElement":null,"multiForwardMsgElement":null,"giphyElement":null,"walletElement":null,"inlineKeyboardElement":null,"textGiftElement":null,"calendarElement":null,"yoloGameResultElement":null,"avRecordElement":null,"structMsgElement":null,"faceBubbleElement":null,"shareLocationElement":null,"tofuRecordElement":null,"taskTopMsgElement":null,"recommendedMsgElement":null,"actionBarElement":null}],"records":[],"emojiLikesList":[],"commentCnt":"0","directMsgFlag":0,"directMsgMembers":[],"peerName":"ACG●爱动漫●二次元","freqLimitInfo":null,"editable":false,"avatarMeta":"","avatarPendant":"","feedId":"","roleId":"0","timeStamp":"0","clientIdentityInfo":null,"isImportMsg":false,"atType":0,"roleType":0,"fromChannelRoleInfo":{"roleId":"0","name":"","color":0},"fromGuildRoleInfo":{"roleId":"0","name":"","color":0},"levelRoleInfo":{"roleId":"0","name":"","color":0},"recallTime":"0","isOnlineMsg":true,"generalFlags":"0x","clientSeq":"0","fileGroupSize":null,"foldingInfo":null,"multiTransInfo":null,"senderUin":"1327301727","peerUin":"531452505","msgAttrs":{},"anonymousExtInfo":null,"nameType":0,"avatarFlag":0,"extInfoForUI":null,"personalMedal":null,"categoryManage":0,"msgEventInfo":null}] 

2024-05-18 19:14:08 [DEBUG] (3067656659) 
记录消息到数据库, 消息长id: 7370296371570544854, 短id: -2147473169 

2024-05-18 19:14:08 [DEBUG] (3067656659) 
收到新消息 {"msgId":"7370296371570544854","msgRandom":"461208027","msgSeq":"3207526","cntSeq":"0","chatType":2,"msgType":2,"subMsgType":1,"sendType":0,"senderUid":"u_J3qCcUaATiANQAtndZQDHw","peerUid":"531452505","channelId":"","guildId":"","guildCode":"0","fromUid":"0","fromAppid":"0","msgTime":"1716030848","msgMeta":"0x","sendStatus":2,"sendRemarkName":"","sendMemberName":"","sendNickName":"🍂","guildName":"","channelName":"","elements":[{"elementType":1,"elementId":"7370296371570544853","extBufForUI":"0x","textElement":{"content":"对","atType":0,"atUid":"0","atTinyId":"0","atNtUid":"","subElementType":0,"atChannelId":"0","linkInfo":null,"atRoleId":"0","atRoleColor":0,"atRoleName":"","needNotify":0},"faceElement":null,"marketFaceElement":null,"replyElement":null,"picElement":null,"pttElement":null,"videoElement":null,"grayTipElement":null,"arkElement":null,"fileElement":null,"liveGiftElement":null,"markdownElement":null,"structLongMsgElement":null,"multiForwardMsgElement":null,"giphyElement":null,"walletElement":null,"inlineKeyboardElement":null,"textGiftElement":null,"calendarElement":null,"yoloGameResultElement":null,"avRecordElement":null,"structMsgElement":null,"faceBubbleElement":null,"shareLocationElement":null,"tofuRecordElement":null,"taskTopMsgElement":null,"recommendedMsgElement":null,"actionBarElement":null}],"records":[],"emojiLikesList":[],"commentCnt":"0","directMsgFlag":0,"directMsgMembers":[],"peerName":"ACG●爱动漫●二次元","freqLimitInfo":null,"editable":false,"avatarMeta":"","avatarPendant":"","feedId":"","roleId":"0","timeStamp":"0","clientIdentityInfo":null,"isImportMsg":false,"atType":0,"roleType":0,"fromChannelRoleInfo":{"roleId":"0","name":"","color":0},"fromGuildRoleInfo":{"roleId":"0","name":"","color":0},"levelRoleInfo":{"roleId":"0","name":"","color":0},"recallTime":"0","isOnlineMsg":true,"generalFlags":"0x","clientSeq":"0","fileGroupSize":null,"foldingInfo":null,"multiTransInfo":null,"senderUin":"1327301727","peerUin":"531452505","msgAttrs":{},"anonymousExtInfo":null,"nameType":0,"avatarFlag":0,"extInfoForUI":null,"personalMedal":null,"categoryManage":0,"msgEventInfo":null,"id":-2147473169} 

2024-05-18 19:14:08 [DEBUG] (3067656659) 
收到消息:  {"self_id":3067656659,"user_id":1327301727,"time":1716030848,"message_id":-2147473169,"message_seq":-2147473169,"real_id":-2147473169,"message_type":"group","sender":{"user_id":1327301727,"nickname":"🍂","card":"","role":"member"},"raw_message":"","font":14,"sub_type":"normal","message":[{"data":{"text":""},"type":"text"}],"message_format":"array","post_type":"message","group_id":531452505} 

2024-05-18 19:14:08 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:2536/OneBotv11 {"self_id":3067656659,"user_id":1327301727,"time":1716030848,"message_id":-2147473169,"message_seq":-2147473169,"real_id":-2147473169,"message_type":"group","sender":{"user_id":1327301727,"nickname":"🍂","card":"","role":"member"},"raw_message":"","font":14,"sub_type":"normal","message":[{"data":{"text":""},"type":"text"}],"message_format":"array","post_type":"message","group_id":531452505} 

2024-05-18 19:14:08 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:14514/onebot/v11/ws {"self_id":3067656659,"user_id":1327301727,"time":1716030848,"message_id":-2147473169,"message_seq":-2147473169,"real_id":-2147473169,"message_type":"group","sender":{"user_id":1327301727,"nickname":"🍂","card":"","role":"member"},"raw_message":"","font":14,"sub_type":"normal","message":[{"data":{"text":""},"type":"text"}],"message_format":"array","post_type":"message","group_id":531452505} 

2024-05-18 19:14:08 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:5140/onebot {"self_id":3067656659,"user_id":1327301727,"time":1716030848,"message_id":-2147473169,"message_seq":-2147473169,"real_id":-2147473169,"message_type":"group","sender":{"user_id":1327301727,"nickname":"🍂","card":"","role":"member"},"raw_message":"","font":14,"sub_type":"normal","message":[{"data":{"text":""},"type":"text"}],"message_format":"array","post_type":"message","group_id":531452505} 

2024-05-18 19:14:08 [DEBUG] (3067656659) 
ws 消息上报 ws://xxx:28280/onebot/v11/ws {"self_id":3067656659,"user_id":1327301727,"time":1716030848,"message_id":-2147473169,"message_seq":-2147473169,"real_id":-2147473169,"message_type":"group","sender":{"user_id":1327301727,"nickname":"🍂","card":"","role":"member"},"raw_message":"","font":14,"sub_type":"normal","message":[{"data":{"text":""},"type":"text"}],"message_format":"array","post_type":"message","group_id":531452505} 

2024-05-18 19:14:08 [DEBUG] (3067656659) 
ws 消息上报  {"self_id":3067656659,"user_id":1327301727,"time":1716030848,"message_id":-2147473169,"message_seq":-2147473169,"real_id":-2147473169,"message_type":"group","sender":{"user_id":1327301727,"nickname":"🍂","card":"","role":"member"},"raw_message":"","font":14,"sub_type":"normal","message":[{"data":{"text":""},"type":"text"}],"message_format":"array","post_type":"message","group_id":531452505} 

2024-05-18 19:14:08 [INFO] (3067656659) 
群[ACG●爱动漫●二次元(531452505)] 🍂(1327301727): 对
 

2024-05-18 19:14:08 [DEBUG] (3067656659) 
收到反向Websocket消息 {"action":"get_group_list","params":{},"echo":3746} 

2024-05-18 19:14:08 [DEBUG] (3067656659) 
ws 消息上报 ws://127.0.0.1:5140/onebot {"status":"ok","retcode":0,"data":[{"group_id":991915534,"group_name":"一群勾八玩意<$ÿĀ\u0011\u0010>","member_count":51,"max_member_count":200},{"group_id":950909053,"group_name":"Low、超、克里斯缇娜、琳一、の、Need For Speed、Makise Kurisu","member_count":7,"max_member_count":200},{"group_id":768556279,"group_name":"NSG Gaming Club","member_count":185,"max_member_count":500},{"group_id":531452505,"group_name":"ACG●爱动漫●二次元","member_count":981,"max_member_count":1000},{"group_id":826737286,"group_name":"Need For Speed、绪山真寻、Makise Kurisu","member_count":3,"max_member_count":200},{"group_id":557989346,"group_name":"就是这么","member_count":21,"max_member_count":200},{"group_id":628966760,"group_name":"修仙","member_count":21,"max_member_count":200}],"message":"","wording":"","echo":3746} 

2024-05-18 19:14:08 [DEBUG] (3067656659) 
收到正向Websocket消息 {"action":"mark_msg_as_read","params":{"message_id":-2147473169},"echo":1827} 

2024-05-18 19:14:08 [DEBUG] (3067656659) 
ws 消息上报  {"status":"ok","retcode":0,"data":null,"message":"","wording":"","echo":1827}

OneBot 客户端运行日志

05-18 19:03:39 [SUCCESS] nonebot | OneBot V11 3067656659 | [message.group.normal]: Message -2147473310 from 2247403951@[群:826737286] '真寻签到'
05-18 19:03:39 [INFO] nonebot | Event will be handled by Matcher(type='message', module=plugins.black_word)
05-18 19:03:39 [INFO] nonebot | Event will be handled by Matcher(type='message', module=plugins.mute)
05-18 19:03:39 [INFO] nonebot | Event will be handled by Matcher(type='message', module=basic_plugins.chat_history.chat_message)
05-18 19:03:39 [INFO] nonebot | Event will be handled by Matcher(type='message', module=plugins.parse_bilibili_json)
05-18 19:03:39 [INFO] nonebot | Matcher(type='message', module=plugins.black_word) running complete
05-18 19:03:39 [INFO] nonebot | Matcher(type='message', module=plugins.mute) running complete
05-18 19:03:40 [INFO] nonebot | Matcher(type='message', module=plugins.parse_bilibili_json) running complete
05-18 19:03:40 [INFO] nonebot | Matcher(type='message', module=basic_plugins.chat_history.chat_message) running complete
05-18 19:03:40 [INFO] nonebot | Event will be handled by Matcher(type='message', module=plugins.sign_in)
05-18 19:03:40 [INFO] services | (USER 2247403951, GROUP 826737286) CHECKED IN successfully. score: 10089.33 (+0.60).获取金币:92
05-18 19:03:40 [INFO] nonebot | Event will be handled by Matcher(type='message', module=plugins.fudu)
05-18 19:03:40 [INFO] services | 下载 https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=CgoyNDAxNzcwOTY1EhRsRYjdZD1S9qjHu1s09voKHAgwbBj5_wUg_wooiaz824aXhgNQgL2jAQ&spec=0&rkey=CAMSKMa3OFokB_TlKCmHmTf_p-LLYnAIiFG7pyDR_Q3aw5FP2ftF6IuiG2U 成功.. Path:/home/qqbot/zhenxun_bot/resources/temp/compare_531452505_img.jpg
05-18 19:03:40 [INFO] nonebot | Matcher(type='message', module=plugins.fudu) running complete
05-18 19:03:44 [INFO] nonebot | Matcher(type='message', module=plugins.sign_in) running complete
05-18 19:03:49 [SUCCESS] nonebot | OneBot V11 3067656659 | [message.group.normal]: Message -2147473308 from 3438162106@[群:531452505] '[image:file=A48546B8ADDCEA66723EAFB4254F6A68.jpg,url=https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=CgozNDM4...,file_size=97592]'
05-18 19:03:49 [INFO] nonebot | Event will be handled by Matcher(type='message', module=plugins.black_word)
05-18 19:03:49 [INFO] nonebot | Event will be handled by Matcher(type='message', module=plugins.mute)
05-18 19:03:49 [INFO] nonebot | Event will be handled by Matcher(type='message', module=basic_plugins.chat_history.chat_message)
05-18 19:03:49 [INFO] nonebot | Event will be handled by Matcher(type='message', module=plugins.parse_bilibili_json)
05-18 19:03:49 [INFO] nonebot | Matcher(type='message', module=plugins.black_word) running complete
05-18 19:03:49 [INFO] nonebot | Matcher(type='message', module=plugins.parse_bilibili_json) running complete
05-18 19:03:49 [INFO] nonebot | Matcher(type='message', module=basic_plugins.chat_history.chat_message) running complete
05-18 19:03:50 [INFO] nonebot | Matcher(type='message', module=plugins.mute) running complete
05-18 19:03:50 [INFO] nonebot | Event will be handled by Matcher(type='message', module=plugins.fudu)
05-18 19:03:51 [INFO] services | 下载 https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=CgozNDM4MTYyMTA2EhRtmEcVQHwP3yyg7LNnm0tGq8l8Vxi4-gUg_woo6KLG4YaXhgNQgL2jAQ&spec=0&rkey=CAMSKMa3OFokB_TlKCmHmTf_p-LLYnAIiFG7pyDR_Q3aw5FP2ftF6IuiG2U 成功.. Path:/home/qqbot/zhenxun_bot/resources/temp/compare_531452505_img.jpg
05-18 19:03:51 [INFO] nonebot | Matcher(type='message', module=plugins.fudu) running complete
05-18 19:03:53 [WARNING] nonebot | OneBot V11 | Error when getting message reply info: NetWorkError(message='WebSocket call api get_msg timeout')
Traceback (most recent call last):

  File "/home/qqbot/zhenxun_bot/bot.py", line 21, in <module>
    nonebot.run()
    │       └ <function run at 0x7f1cee527010><module 'nonebot' from '/home/qqbot/.cache/pypoetry/virtualenvs/zhenxun-bot-zvIVWuAT-py3.10/lib/python3.10/site-packages/none...

  File "/home/qqbot/.cache/pypoetry/virtualenvs/zhenxun-bot-zvIVWuAT-py3.10/lib/python3.10/site-packages/nonebot/__init__.py", line 333, in run
    get_driver().run(*args, **kwargs)
    │                 │       └ {}
    │                 └ ()
    └ <function get_driver at 0x7f1cee526e60>
  File "/home/qqbot/.cache/pypoetry/virtualenvs/zhenxun-bot-zvIVWuAT-py3.10/lib/python3.10/site-packages/nonebot/drivers/fastapi.py", line 199, in run
    uvicorn.run(
    │       └ <function run at 0x7f1ced5616c0>
    └ <module 'uvicorn' from '/home/qqbot/.cache/pypoetry/virtualenvs/zhenxun-bot-zvIVWuAT-py3.10/lib/python3.10/site-packages/uvic...
  File "/home/qqbot/.cache/pypoetry/virtualenvs/zhenxun-bot-zvIVWuAT-py3.10/lib/python3.10/site-packages/uvicorn/main.py", line 587, in run
    server.run()
    │      └ <function Server.run at 0x7f1ced561870><uvicorn.server.Server object at 0x7f1cd496d210>
  File "/home/qqbot/.cache/pypoetry/virtualenvs/zhenxun-bot-zvIVWuAT-py3.10/lib/python3.10/site-packages/uvicorn/server.py", line 61, in run
    return asyncio.run(self.serve(sockets=sockets))
           │       │   │    │             └ None
           │       │   │    └ <function Server.serve at 0x7f1ced561900>
           │       │   └ <uvicorn.server.Server object at 0x7f1cd496d210>
           │       └ <function run at 0x7f1cef4c4160><module 'asyncio' from '/usr/lib/python3.10/asyncio/__init__.py'>
  File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
           │    │                  └ <coroutine object Server.serve at 0x7f1cd49a8120>
           │    └ <method 'run_until_complete' of 'uvloop.loop.Loop' objects><uvloop.Loop running=True closed=False debug=False>
  File "/home/qqbot/.cache/pypoetry/virtualenvs/zhenxun-bot-zvIVWuAT-py3.10/lib/python3.10/site-packages/nonebot/adapters/onebot/v11/bot.py", line 190, in handle_event
    await _check_reply(self, event)
          │            │     └ GroupMessageEvent(time=1716030202, self_id=3067656659, post_type='message', sub_type='normal', user_id=304102705, message_typ...
          │            └ Bot(type='OneBot V11', self_id='3067656659')
          └ <function _check_reply at 0x7f1cee24d6c0>
> File "/home/qqbot/.cache/pypoetry/virtualenvs/zhenxun-bot-zvIVWuAT-py3.10/lib/python3.10/site-packages/nonebot/adapters/onebot/v11/bot.py", line 34, in _check_reply
    event.reply = Reply.parse_obj(await bot.get_msg(message_id=msg_seg.data["id"]))
    │     │       │     │               │                      │       └ {'id': '-2147473318'}
    │     │       │     │               │                      └ MessageSegment(type='reply', data={'id': '-2147473318'})
    │     │       │     │               └ Bot(type='OneBot V11', self_id='3067656659')
    │     │       │     └ <classmethod(<cyfunction BaseModel.parse_obj at 0x7f1cee8b6400>)>
    │     │       └ <class 'nonebot.adapters.onebot.v11.event.Reply'>
    │     └ None
    └ GroupMessageEvent(time=1716030202, self_id=3067656659, post_type='message', sub_type='normal', user_id=304102705, message_typ...
  File "/home/qqbot/.cache/pypoetry/virtualenvs/zhenxun-bot-zvIVWuAT-py3.10/lib/python3.10/site-packages/nonebot/internal/adapter/bot.py", line 120, in call_api
    raise exception
          └ NetWorkError(message='WebSocket call api get_msg timeout')
  File "/home/qqbot/.cache/pypoetry/virtualenvs/zhenxun-bot-zvIVWuAT-py3.10/lib/python3.10/site-packages/nonebot/internal/adapter/bot.py", line 98, in call_api
    result = await self.adapter._call_api(self, api, **data)
                   │    │       │         │     │      └ {'message_id': '-2147473318'}
                   │    │       │         │     └ 'get_msg'
                   │    │       │         └ Bot(type='OneBot V11', self_id='3067656659')
                   │    │       └ <function Adapter._call_api at 0x7f1cee24f760>
                   │    └ Adapter(name='OneBot V11')
                   └ Bot(type='OneBot V11', self_id='3067656659')
  File "/home/qqbot/.cache/pypoetry/virtualenvs/zhenxun-bot-zvIVWuAT-py3.10/lib/python3.10/site-packages/nonebot/adapters/onebot/v11/adapter.py", line 145, in _call_api
    raise NetworkError(f"WebSocket call api {api} timeout") from None
          └ <class 'nonebot.adapters.onebot.v11.exception.NetworkError'>

nonebot.adapters.onebot.v11.exception.NetworkError: NetWorkError(message='WebSocket call api get_msg timeout')
05-18 19:03:53 [SUCCESS] nonebot | OneBot V11 3067656659 | [message.group.normal]: Message -2147473313 from 304102705@[群:531452505] '[reply:id=-2147473318][at:qq=2594297680] 为了去码头整点薯条'
05-18 19:03:53 [INFO] nonebot | Event will be handled by Matcher(type='message', module=plugins.black_word)
05-18 19:03:53 [INFO] nonebot | Event will be handled by Matcher(type='message', module=plugins.mute)
05-18 19:03:53 [INFO] nonebot | Event will be handled by Matcher(type='message', module=basic_plugins.chat_history.chat_message)
05-18 19:03:53 [INFO] nonebot | Event will be handled by Matcher(type='message', module=plugins.parse_bilibili_json)
05-18 19:03:53 [INFO] nonebot | Matcher(type='message', module=plugins.black_word) running complete
05-18 19:03:53 [INFO] nonebot | Matcher(type='message', module=plugins.mute) running complete
05-18 19:03:53 [INFO] nonebot | Matcher(type='message', module=plugins.parse_bilibili_json) running complete
05-18 19:03:53 [INFO] nonebot | Matcher(type='message', module=basic_plugins.chat_history.chat_message) running complete
05-18 19:03:53 [INFO] nonebot | Event will be handled by Matcher(type='message', module=plugins.fudu)
05-18 19:03:53 [INFO] nonebot | Matcher(type='message', module=plugins.fudu) running complete
05-18 19:03:58 [SUCCESS] nonebot | OneBot V11 3067656659 | [message.group.normal]: Message -2147473307 from 2247403951@[群:826737286] '真寻帮助'
05-18 19:03:58 [INFO] nonebot | Event will be handled by Matcher(type='message', module=plugins.black_word)
05-18 19:03:58 [INFO] nonebot | Event will be handled by Matcher(type='message', module=plugins.mute)
05-18 19:03:58 [INFO] nonebot | Event will be handled by Matcher(type='message', module=basic_plugins.chat_history.chat_message)
05-18 19:03:58 [INFO] nonebot | Event will be handled by Matcher(type='message', module=plugins.parse_bilibili_json)
05-18 19:03:58 [INFO] nonebot | Event will be handled by Matcher(type='message', module=basic_plugins.help)
05-18 19:03:58 [INFO] nonebot | Matcher(type='message', module=plugins.black_word) running complete
05-18 19:03:58 [INFO] nonebot | Matcher(type='message', module=plugins.mute) running complete
05-18 19:03:58 [INFO] nonebot | Matcher(type='message', module=plugins.parse_bilibili_json) running complete
05-18 19:03:58 [INFO] nonebot | Matcher(type='message', module=basic_plugins.chat_history.chat_message) running complete
05-18 19:04:02 [SUCCESS] nonebot | OneBot V11 3067656659 | [message.group.normal]: Message -2147473306 from 1912919591@[群:557989346] '我没问你'
05-18 19:04:02 [INFO] nonebot | Event will be handled by Matcher(type='message', module=plugins.black_word)
05-18 19:04:02 [INFO] nonebot | Event will be handled by Matcher(type='message', module=plugins.mute)
05-18 19:04:02 [INFO] nonebot | Event will be handled by Matcher(type='message', module=basic_plugins.chat_history.chat_message)
05-18 19:04:02 [INFO] nonebot | Event will be handled by Matcher(type='message', module=plugins.parse_bilibili_json)
05-18 19:04:02 [INFO] nonebot | Matcher(type='message', module=plugins.black_word) running complete
05-18 19:04:02 [INFO] nonebot | Matcher(type='message', module=plugins.mute) running complete
05-18 19:04:02 [INFO] nonebot | Matcher(type='message', module=plugins.parse_bilibili_json) running complete
05-18 19:04:02 [INFO] nonebot | Matcher(type='message', module=basic_plugins.chat_history.chat_message) running complete
05-18 19:04:03 [INFO] nonebot | Event will be handled by Matcher(type='message', module=plugins.fudu)
05-18 19:04:03 [INFO] nonebot | Matcher(type='message', module=plugins.fudu) running complete
05-18 19:04:07 [INFO] nonebot | Matcher(type='message', module=basic_plugins.help) running complete
05-18 19:04:07 [SUCCESS] nonebot | OneBot V11 3067656659 | [message.group.normal]: Message -2147473304 from 2247403951@[群:826737286] '真寻'
05-18 19:04:07 [INFO] nonebot | Event will be handled by Matcher(type='message', module=plugins.black_word)
05-18 19:04:07 [INFO] nonebot | Event will be handled by Matcher(type='message', module=plugins.mute)
05-18 19:04:08 [INFO] nonebot | Event will be handled by Matcher(type='message', module=basic_plugins.chat_history.chat_message)
05-18 19:04:08 [INFO] nonebot | Event will be handled by Matcher(type='message', module=plugins.parse_bilibili_json)
05-18 19:04:08 [INFO] nonebot | Matcher(type='message', module=plugins.black_word) running complete

[BUG] 调用get_group_list时会返回已被踢出/退出的群

系统版本

Windows Server 2022

QQNT 版本

9.9.9-22741

NapCat 版本

1.2.0

OneBot 客户端

nonebot2

发生了什么?

LLOneBot/LLOneBot#193

和这个一样,后续ll修复了

如何复现

退群后调用get_group_list,已退的群还在

期望的结果?

退群后应该不在get_group_list里

NapCat 运行日志

No response

OneBot 客户端运行日志

No response

[BUG] 无法使用 systemctl 守护

系统版本

Linux KLSA-Bot 6.5.13-3-pve #1 SMP PREEMPT_DYNAMIC PMX 6.5.13-3 (2024-03-20T10:45Z) x86_64 x86_64 x86_64 GNU/Linux

QQNT 版本

Linux QQ 2.3.7-23361

NapCat 版本

1.3.3

OneBot 客户端

Nonebot

发生了什么?

5月 17 19:13:46 KLSA-Bot napcat.sh[57723]: 2024-05-17 19:13:46 [INFO] -
5月 17 19:13:46 KLSA-Bot napcat.sh[57723]: 正在快速登录  *
5月 17 19:13:46 KLSA-Bot napcat.sh[57723]: [NapCat] [WebUi] Current WebUi is running at IP:6099
5月 17 19:13:48 KLSA-Bot napcat.sh[57723]: linux-bugly: init bugly ...
5月 17 19:13:48 KLSA-Bot napcat.sh[57719]: /root/NapCat.linux.x64/napcat.sh: line 21: 57723 Segmentation fault      /opt/QQ/qq "${SCRIPT_DIR}/napcat.cjs" "$@"
5月 17 19:13:48 KLSA-Bot systemd[1]: napcat.service: Main process exited, code=exited, status=139/n/a
5月 17 19:13:48 KLSA-Bot systemd[1]: napcat.service: Failed with result 'exit-code'.
5月 17 19:13:48 KLSA-Bot systemd[1]: napcat.service: Consumed 2.539s CPU time.
5月 17 19:13:48 KLSA-Bot systemd[1]: napcat.service: Scheduled restart job, restart counter is at 1.

如何复现

systemctl 配置文件:

[Unit]
Description=NapCatQQ
After=network.target

[Service]
Type=simple
ExecStart=/root/NapCat.linux.x64/napcat.sh -q *
WorkingDirectory=/root/NapCat.linux.x64
Restart=always

[Install]
WantedBy=multi-user.target

期望的结果?

能够使用 systemctl 做守护

NapCat 运行日志

No response

OneBot 客户端运行日志

No response

[安装问题]如何在无图形界面的CentOS中安装QQNT

虽然这个问题好像有点蠢蠢的,但是我在 napneko.github.io 上看到”不需要图形环境,Linux表现优异“,所以来问一问。

使用的是 napneko.github.io 上面的 Linux QQ 2.3.7-23361

我能自行解决的依赖我已经尽可能的解决了,剩下的依赖实在解决不了了。

$ sudo dpkg -i ./QQ_3.2.7_240428_amd64_01.deb
(正在读取数据库 ... 系统当前共安装有 908 个文件和目录。)
准备解压 ./QQ_3.2.7_240428_amd64_01.deb  ...
正在解压 linuxqq (3.2.7-23361) 并覆盖 (3.2.7-23361) ...
dpkg: 依赖关系问题使得 linuxqq 的配置工作不能继续:
 linuxqq 依赖于 libgtk-3-0;然而:
  未安装软件包 libgtk-3-0。
 linuxqq 依赖于 libnotify4;然而:
  未安装软件包 libnotify4。
 linuxqq 依赖于 libnss3;然而:
  未安装软件包 libnss3。
 linuxqq 依赖于 libxss1;然而:
  未安装软件包 libxss1。
 linuxqq 依赖于 libxtst6;然而:
  未安装软件包 libxtst6。
 linuxqq 依赖于 xdg-utils;然而:
  未安装软件包 xdg-utils。
 linuxqq 依赖于 libatspi2.0-0;然而:
  未安装软件包 libatspi2.0-0。
 linuxqq 依赖于 libuuid1;然而:
  未安装软件包 libuuid1。
 linuxqq 依赖于 libsecret-1-0;然而:
  未安装软件包 libsecret-1-0。

dpkg: 处理软件包 linuxqq (--install)时出错:
 依赖关系问题 - 仍未被配置
在处理时有错误发生:
linuxqq

我是如何解决一部分依赖的?

$ yum provides '*libgbm.so*'
epository epel is listed more than once in the configuration
上次元数据过期检查:0:01:06 前,执行于 2024年05月23日 星期四 11时24分48秒。
mesa-libgbm-21.1.5-1.el8.i686 : Mesa gbm runtime library
仓库        :AppStream
匹配来源:
提供    : libgbm.so.1

mesa-libgbm-21.1.5-1.el8.x86_64 : Mesa gbm runtime library
仓库        :AppStream
匹配来源:
提供    : libgbm.so.1()(64bit)

$ yum install -y mesa-libgbm-21.1.5-1.el8.x86_64

"libgbm1", "libasound2"都是用这种方式解决的。

其它依赖:

$ yum provides '*libxss1*'
Repository epel is listed more than once in the configuration
上次元数据过期检查:0:09:58 前,执行于 2024年05月23日 星期四 11时24分48秒。
错误:没有找到匹配的软件包

我的系统环境是:

# cat /etc/issue
\S
Kernel \r on an \m

# cat /etc/redhat-release
CentOS Linux release 8.2.2004 (Core) 

# cat /proc/version
Linux version 4.18.0-348.7.1.el8_5.x86_64 ([email protected]) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-4) (GCC)) #1 SMP Wed Dec 22 13:25:12 UTC 2021

# uname -a
Linux VM-4-10-centos 4.18.0-348.7.1.el8_5.x86_64 #1 SMP Wed Dec 22 13:25:12 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

服务器是腾讯云的轻量应用服务器CentOS版

[BUG] API post发送内容如果加上引号会报错

系统版本

Windows 10

QQNT 版本

9.9.9_240507

NapCat 版本

1.3.9

OneBot 客户端

自己的框架

发生了什么?

post 禁言群乘员的api json中带有双引号会出现下面的报错
{"status":"failed","retcode":400,"data":null,"message":"Key: duration, Message: must be number","wording":"Key: duration, Message: must be number","echo":null}

如何复现

  1. API set_group_ban post {"group_id":"1234567","user_id":"10000","duration":"100"}
  2. 报错 {"status":"failed","retcode":400,"data":null,"message":"Key: group_id, Message: must be number","wording":"Key: group_id, Message: must be number","echo":null}
  3. API set_group_ban post {"group_id":1234567,"user_id":10000,"duration":100}
  4. 成功

期望的结果?

希望可以正常读取带有引号的json

NapCat 运行日志

No response

OneBot 客户端运行日志

No response

[BUG] 下载base64文件时报错

系统版本

CentOS 9 Stream

QQNT 版本

2.3.7-23361

NapCat 版本

1.2.0

OneBot 客户端

Overflow v2.16.0-a799c07-SNAPSHOT

发生了什么?

使用bilibili-dynamic插件订阅查询动态时napCat报错

如何复现

输入命令 /bili new 928123

期望的结果?

正常返回生成的动态图片

NapCat 运行日志

2024-05-06 07:32:24 W/Onebot: Request failed: [send_group_msg] app=NapCat.Onebot v1.2.0, message=Error: 文件下载失败uri !base64://iVBORw0KGgoAAAANSUhEUgAAA+gAAAMRCAYAAAB/[太长了此处省略base64格式]不存在 
    at Object.CcXvz (/usr/src/app/napcat/napcat.cjs:10049:13032)
    at createSendElements (/usr/src/app/napcat/napcat.cjs:10049:19373)
    at async SendGroupMsg._handle (/usr/src/app/napcat/napcat.cjs:10049:31772)
    at async SendGroupMsg.websocketHandle (/usr/src/app/napcat/napcat.cjs:10043:6389)
    at async OB11WebsocketServer.handleAction (/usr/src/app/napcat/napcat.cjs:10660:5664), retJson={"status":"failed","retcode":1200,"data":null,"message":"Error: 文件下载失败uri !base64://iVBORw0KGgoAAAANSUhEUgAAA+gAAAMRCAYAAAB/[太长了此处省略base64格式]

OneBot 客户端运行日志

No response

[BUG] 在获取群成员列表时,部分键值出现问题

系统版本

Debian 12 bookworm

QQNT 版本

Docker

NapCat 版本

Docker

OneBot 客户端

Nonebot2 / 2.2.1

发生了什么?

在下面信息中last_sent_time为0,还有其它多个键值未正常显示,join_time等(已给测试群字符打码)

{
    "group_id": 9**01**20,
    "user_id": 1990248284,
    "nickname": "Mr.ling",
    "card": "",
    "sex": "unknown",
    "age": 0,
    "area": "",
    "level": 0,
    "qq_level": 0,
    "join_time": 0,
    "last_sent_time": 0,
    "title_expire_time": 0,
    "unfriendly": false,
    "card_changeable": true,
    "is_robot": false,
    "shut_up_timestamp": 0,
    "role": "member",
    "title": ""
  }

如何复现

https://github.com/CrashVibe/U1bot/blob/main/src/plugins/waifu/__init__.py#L176-L181

期望的结果?

构建出完整的信息,如go-cq返回的

  {
    "age": 0,
    "area": "",
    "card": "",
    "card_changeable": false,
    "group_id": 9**01**20,
    "join_time": 1675189660,
    "last_sent_time": 1713321801,
    "level": "1",
    "nickname": "Mr.ling",
    "role": "member",
    "sex": "male",
    "shut_up_timestamp": 0,
    "title": "",
    "title_expire_time": 0,
    "unfriendly": false,
    "user_id": 1990248284
  }

NapCat 运行日志

无相关api日志输出

OneBot 客户端运行日志

No response

[BUG] 使用-q参数快捷登录时报错闪退

系统版本

Windows 10 LTSC

QQNT 版本

9.9.9-22868

NapCat 版本

1.0.2

OneBot 客户端

发生了什么?

使用-q参数快捷登录时报错闪退,切换为扫码登录方式可正常登录。已确定在登录前已经使用QQNT客户端成功登录QQ,且可以正常一键登录。

如何复现

使用控制台执行 napcat-utf8.bat -q XXXXX 进行快捷登录

期望的结果?

能够正常使用快捷登录

NapCat 运行日志

ob11 msg listener added
ob11 buddy listener added
ob11 group listener added
login success
node:events:495
      throw er; // Unhandled 'error' event
      ^

Error: read ECONNRESET
    at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20)
Emitted 'error' event on ClientRequest instance at:
    at TLSSocket.socketErrorListener (node:_http_client:501:9)
    at TLSSocket.emit (node:events:517:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -4077,
  code: 'ECONNRESET',
  syscall: 'read'
}

Node.js v18.18.2
Press any key to continue . . .

OneBot 客户端运行日志

No response

[BUG] 戳一戳一直返回错误

系统版本

Linux ubuntu 22.04 lts

QQNT 版本

3.2.8_240520

NapCat 版本

v1.4.0

OneBot 客户端

Overflow v2.16.0-f37b538-SNAPSHOT.1

发生了什么?

戳一戳一直返回发生错误

如何复现

1.下载napcat1.4.0
2.解压替换旧版napcat1.3.0文件
3.启动napcat
4.扫码登录
5.启动Overflow
6.连接正向ws
7.群内和私聊对机器人账号戳一戳
8.返回发生错误,群xxxxx不存在

期望的结果?

戳一戳正常返回

NapCat 运行日志

2024-05-25 21:03:19 [INFO] 小辰(1xxxxx7) 
[私聊] 用户  32xxxxxxx4  对你戳一戳 

2024-05-25 21:03:19 [ERROR] 小辰(1xxxxxx7) 
发生错误 群0不存在 

2024-05-25 21:04:48 [INFO] 小辰(1xxxxxx7) 
[群聊] 群组  39xxxxxx1  戳一戳 

2024-05-25 21:04:49 [ERROR] 小辰(1xxxxxx7) 
发生错误 群39xxxxxx1不存在

OneBot 客户端运行日志

2024-05-25 21:03:14 I/Onebot: Overflow v2.16.0-f37b538-SNAPSHOT.1 正在运行
2024-05-25 21:03:14 I/Onebot: 连接到 WebSocket: ws://127.0.0.1:4002
2024-05-25 21:03:14 I/main: mirai-console started successfully.
2024-05-25 21:03:14 I/Onebot: ▌ 已连接到服务器 ┈━═☆
2024-05-25 21:03:14 I/BiliBili Dynamic: BiliBili UID: 5xxxxxxx1
2024-05-25 21:03:14 I/Onebot: 服务端版本信息
{
  "status": "ok",
  "retcode": 0,
  "data": {
    "app_name": "NapCat.Onebot",
    "protocol_version": "v11",
    "app_version": "1.4.0"
  },
  "message": "",
  "wording": "",
  "echo": 0
}
2024-05-25 21:03:15 I/BiliBili Dynamic: 加载字体 LXGW WenKai 成功
2024-05-25 21:03:15 V/Bot.1992588307: Event: BotOnlineEvent(bot=Bot(1xxxxxxx7))
2024-05-25 21:03:19 W/Onebot: Request failed: [get_group_info] app=NapCat.Onebot v1.4.0, message=群0不存在, retJson
={"status":"failed","retcode":1200,"data":null,"message":"群0不存在","wording":"群0不存在","echo":20}
2024-05-25 21:03:19 W/stderr: Exception in thread "DefaultDispatcher-worker-11" java.lang.IllegalStateException: 无
  取得群 0 的信息
2024-05-25 21:03:19 W/stderr:   at top.mrxiaom.overflow.internal.utils.TransformerUtilsKt.group(TransformerUtils.kt:63)
2024-05-25 21:03:19 W/stderr:   at top.mrxiaom.overflow.internal.utils.TransformerUtilsKt$group$1.invokeSuspend(TransformerUtils.kt)
2024-05-25 21:03:19 W/stderr:   at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
2024-05-25 21:03:19 W/stderr:   at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33)
2024-05-25 21:03:19 W/stderr:   at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
2024-05-25 21:03:19 W/stderr:   at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
2024-05-25 21:03:19 W/stderr:   at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
2024-05-25 21:03:19 W/stderr:   at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
2024-05-25 21:03:19 W/stderr:   at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
2024-05-25 21:03:19 W/stderr:   at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
2024-05-25 21:03:19 W/stderr:   at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
2024-05-25 21:03:19 W/stderr:   Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [CoroutineName(overflow), StandaloneCoroutine{Cancelling}@27ca9c1c, Dispatchers.Default]
2024-05-25 21:04:27 I/PetPet: PetTemplate/zun_point下载成功 (length:1)
2024-05-25 21:04:49 W/Onebot: Request failed: [get_group_info] app=NapCat.Onebot v1.4.0, message=群3918898971不存在
, retJson={"status":"failed","retcode":1200,"data":null,"message":"群3xxxxxxx1不存在","wording":"群3xxxxxxx1不存
  ","echo":22}
2024-05-25 21:04:49 W/stderr: Exception in thread "DefaultDispatcher-worker-8" java.lang.IllegalStateException: 无
  取得群 3xxxxxxx1 的信息
2024-05-25 21:04:49 W/stderr:   at top.mrxiaom.overflow.internal.utils.TransformerUtilsKt.group(TransformerUtils.kt:63)
2024-05-25 21:04:49 W/stderr:   at top.mrxiaom.overflow.internal.utils.TransformerUtilsKt$group$1.invokeSuspend(TransformerUtils.kt)
2024-05-25 21:04:49 W/stderr:   at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
2024-05-25 21:04:49 W/stderr:   at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33)
2024-05-25 21:04:49 W/stderr:   at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
2024-05-25 21:04:49 W/stderr:   at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
2024-05-25 21:04:49 W/stderr:   at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
2024-05-25 21:04:49 W/stderr:   at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
2024-05-25 21:04:49 W/stderr:   at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
2024-05-25 21:04:49 W/stderr:   at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
2024-05-25 21:04:49 W/stderr:   at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
2024-05-25 21:04:49 W/stderr:   Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [CoroutineName(overflow), StandaloneCoroutine{Cancelling}@603708e1, Dispatchers.Default]

[Feature] 临时消息上报 sender 字段问题

NapCat 版本

1.3.5

问题

希望临时消息上报能够在 sender 中提供 nickname、card 还有来源 group_id 的字段(参考gocqhttp的文档)。目前临时消息的 sender 就只有 user_id 这一字段的提供。

[BUG] 使用提示超时并卡住无法运行

系统版本

Windows [版本 10.0.19043.928] (Windows 10 Pro 专业版)

QQNT 版本

9.9.9-240412

NapCat 版本

1.0.2

OneBot 客户端

Koishi 4.17.4 (最新) / adapter-onebot 6.5.1 (最新)

发生了什么?

无法连接 Vercel 的服务而导致脚本卡住

如何复现

  1. 在一台禁海外IP访问的Windows机器上运行ps1脚本
  2. 正常发送消息,可在后端接收到
  3. 等待超时(30s?)
  4. 抛出错误 Error: connect ETIMEDOUT 76.76.21.21:443
  5. 脚本卡住,无法继续处理新的信息。复现完成

期望的结果?

上报失败继续运行而不是卡着

NapCat 运行日志

ws 消息上报 ws://xxxxx:11451/onebot {
  status: 'ok',
  retcode: 0,
  data: { message_id: 6 },
  message: '',
  wording: '',
  echo: 10
}
node:events:495
      throw er; // Unhandled 'error' event
      ^

Error: connect ETIMEDOUT 76.76.21.21:443
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)
Emitted 'error' event on ClientRequest instance at:
    at TLSSocket.socketErrorListener (node:_http_client:501:9)
    at TLSSocket.emit (node:events:517:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -4039,
  code: 'ETIMEDOUT',
  syscall: 'connect',
  address: '76.76.21.21',
  port: 443
}

Node.js v21.7.1

OneBot 客户端运行日志

[BUG] 图片文件下载失败

系统版本

Windows10专业版

QQNT 版本

9.9.9-23361 (64位)

NapCat 版本

1.1.1

OneBot 客户端

1

发生了什么?

写了一个简单的消息转发功能,当NapCat在接收图片信息时下载失败,感觉有点奇怪,很少一部分图片或表情正常转发,很大一部分图片下载失败,如下图就只有最后一个图片没有正常转发

fd0018da2530a9ea4b9d05ead986a9dc
f92ffe8bfcaa9b6213780382526aa8df

如何复现

接收图片时

期望的结果?

正常下载图片并转发

NapCat 运行日志

正在记录消息到数据库 7364158031059186902
ws 消息上报  {
  self_id: 359980882,
  user_id: 1565481748,
  time: 1714601653,
  message_id: 5,
  real_id: 5,
  message_type: 'private',
  sender: { user_id: 1565481748, nickname: '空虚公子', card: '' },
  raw_message: '[CQ:image,file=30E0643C9F194928021EE2787C223D60.png,url=https://gchat.qpic.cn/download?appid=1407&amp;fileid=CgoxNTY1NDgxNzQ4EhTKkkInXYZsUiki0lwZH0r1Tg779Bjni5oBIP4KKITx9_O87YUDUIC7Lw&amp;rkey=CAQSKAB6JWENi5LMk0kc62l8Pm3Jn1dsLZHyRLAnNmHGoZ3y_gDZPqZt-64&amp;spec=0,file_size=2524647]',
  font: 14,
  sub_type: 'friend',
  message: [ { data: [Object], type: 'image' } ],
  message_format: 'array',
  post_type: 'message'
}
收到正向Websocket消息 {
  action: 'send_group_msg',
  params: {
    group_id: 615383756,
    message: '[CQ:image,url=https://gchat.qpic.cn/download?appid=1407&amp;fileid=CgoxNTY1NDgxNzQ4EhTKkkInXYZsUiki0lwZH0r1Tg779Bjni5oBIP4KKITx9_O87YUDUIC7Lw&amp;rkey=CAQSKAB6JWENi5LMk0kc62l8Pm3Jn1dsLZHyRLAnNmHGoZ3y_gDZPqZt-64&amp;spec=0,file_size=2524647,file=30E0643C9F194928021EE2787C223D60.png]'
  },
  echo: 3
}
找到文件缓存 https://gchat.qpic.cn/download?appid=1407&fileid=CgoxNTY1NDgxNzQ4EhTKkkInXYZsUiki0lwZH0r1Tg779Bjni5oBIP4KKITx9_O87YUDUIC7Lw&rkey=CAQSKAB6JWENi5LMk0kc62l8Pm3Jn1dsLZHyRLAnNmHGoZ3y_gDZPqZt-64&spec=0
文件下载失败 https://gchat.qpic.cn/download?appid=1407&fileid=CgoxNTY1NDgxNzQ4EhTKkkInXYZsUiki0lwZH0r1Tg779Bjni5oBIP4KKITx9_O87YUDUIC7Lw&rkey=CAQSKAB6JWENi5LMk0kc62l8Pm3Jn1dsLZHyRLAnNmHGoZ3y_gDZPqZt-64&spec=0下载失败,Error: 
下载文件失败: Not Found
发生错误 Error: 文件下载失败https://gchat.qpic.cn/download?appid=1407&fileid=CgoxNTY1NDgxNzQ4EhTKkkInXYZsUiki0lwZH0r1Tg779Bjni5oBIP4KKITx9_O87YUDUIC7Lw&rkey=CAQSKAB6JWENi5LMk0kc62l8Pm3Jn1dsLZHyRLAnNmHGoZ3y_gDZPqZt-64&spec=0下
载失败,Error: 下载文件失败: Not Found
    at Object.seleJ (C:\Users\i\Desktop\NapCat.win32.x64\napcat.cjs:15:195148)
    at $c (C:\Users\i\Desktop\NapCat.win32.x64\napcat.cjs:15:197237)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async lv._handle (C:\Users\i\Desktop\NapCat.win32.x64\napcat.cjs:15:203322)
    at async lv.websocketHandle (C:\Users\i\Desktop\NapCat.win32.x64\napcat.cjs:15:176819)
    at async Om.handleAction (C:\Users\i\Desktop\NapCat.win32.x64\napcat.cjs:23:148351)
ws 消息上报  {
  status: 'failed',
  retcode: 1200,
  data: null,
  message: 'Error: 文件下载失败https://gchat.qpic.cn/download?appid=1407&fileid=CgoxNTY1NDgxNzQ4EhTKkkInXYZsUiki0lwZH0r1Tg779Bjni5oBIP4KKITx9_O87YUDUIC7Lw&rkey=CAQSKAB6JWENi5LMk0kc62l8Pm3Jn1dsLZHyRLAnNmHGoZ3y_gDZPqZt-64&spec=0下载失败,Error: 下载文件失败: Not Found\n' +
    '    at Object.seleJ (C:\\Users\\i\\Desktop\\NapCat.win32.x64\\napcat.cjs:15:195148)\n' +
    '    at $c (C:\\Users\\i\\Desktop\\NapCat.win32.x64\\napcat.cjs:15:197237)\n' +
    '    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
    '    at async lv._handle (C:\\Users\\i\\Desktop\\NapCat.win32.x64\\napcat.cjs:15:203322)\n' +
    '    at async lv.websocketHandle (C:\\Users\\i\\Desktop\\NapCat.win32.x64\\napcat.cjs:15:176819)\n' +
    '    at async Om.handleAction (C:\\Users\\i\\Desktop\\NapCat.win32.x64\\napcat.cjs:23:148351)',
  wording: 'Error: 文件下载失败https://gchat.qpic.cn/download?appid=1407&fileid=CgoxNTY1NDgxNzQ4EhTKkkInXYZsUiki0lwZH0r1Tg779Bjni5oBIP4KKITx9_O87YUDUIC7Lw&rkey=CAQSKAB6JWENi5LMk0kc62l8Pm3Jn1dsLZHyRLAnNmHGoZ3y_gDZPqZt-64&spec=0下载失败,Error: 下载文件失败: Not Found\n' +
    '    at Object.seleJ (C:\\Users\\i\\Desktop\\NapCat.win32.x64\\napcat.cjs:15:195148)\n' +
    '    at $c (C:\\Users\\i\\Desktop\\NapCat.win32.x64\\napcat.cjs:15:197237)\n' +
    '    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
    '    at async lv._handle (C:\\Users\\i\\Desktop\\NapCat.win32.x64\\napcat.cjs:15:203322)\n' +
    '    at async lv.websocketHandle (C:\\Users\\i\\Desktop\\NapCat.win32.x64\\napcat.cjs:15:176819)\n' +
    '    at async Om.handleAction (C:\\Users\\i\\Desktop\\NapCat.win32.x64\\napcat.cjs:23:148351)',
  echo: 3
}

OneBot 客户端运行日志

No response

[BUG] 群员增加事件失效

系统版本

Microsoft Windows 10 专业版 10.0.19045 内部版本 19045

QQNT 版本

9.9.10-24108

NapCat 版本

1.5.2

OneBot 客户端

obv11

发生了什么?

群员增加事件失效,如NapCat 运行日志所示,收到了加群请求,同意之后Q群管家发出了欢迎消息,但是NapCat没有产生群员增加事件

如何复现

偶现的情况,还没找出复现条件

期望的结果?

群员增加事件不会失效

NapCat 运行日志

2024-06-11 00:46:17 [DEBUG] 斯卡蒂ㅤ⁧~喵,⁧‭(165xxxx30) | 有加群请求 
2024-06-11 00:46:17 [DEBUG] 斯卡蒂ㅤ⁧~喵,⁧‭(165xxxx30) | ws 消息上报 ws://127.0.0.1:54321/onebot/v11/ws/ {"time":1718037977,"self_id":165xxxx30,"post_type":"request","group_id":955xxxx29,"user_id":0,"request_type":"group","sub_type":"add","comment":"enmom","flag":"955xxxx29|1718037977030305"} 
2024-06-11 00:46:40 [DEBUG] 斯卡蒂ㅤ⁧~喵,⁧‭(165xxxx30) | ws 消息上报 ws://127.0.0.1:54321/onebot/v11/ws/ {"time":1718038000,"self_id":165xxxx30,"post_type":"meta_event","meta_event_type":"heartbeat","status":{"online":true,"good":true},"interval":30000} 
2024-06-11 00:46:44 [DEBUG] 斯卡蒂ㅤ⁧~喵,⁧‭(165xxxx30) | 收到新消息 {"msgId":"7378917037107101262","msgRandom":"1388518013","msgSeq":"20538","cntSeq":"0","chatType":2,"msgType":2,"subMsgType":1,"sendType":0,"senderUid":"u_PmxGsJErxkwN0ilC07NLWw","peerUid":"955xxxx29","channelId":"","guildId":"","guildCode":"0","fromUid":"0","fromAppid":"0","msgTime":"1718038003","msgMeta":"0x","sendStatus":2,"sendRemarkName":"","sendMemberName":"","sendNickName":"Q群管家","guildName":"","channelName":"","elements":[{"elementType":1,"elementId":"7378917037107101259","extBufForUI":"0x","textElement":{"content":"@我很困","atType":2,"atUid":"0","atTinyId":"0","atNtUid":"u_zKC8nysE8p25pe8T7xoMSQ","subElementType":0,"atChannelId":"0","linkInfo":null,"atRoleId":"0","atRoleColor":0,"atRoleName":"","needNotify":0},"faceElement":null,"marketFaceElement":null,"replyElement":null,"picElement":null,"pttElement":null,"videoElement":null,"grayTipElement":null,"arkElement":null,"fileElement":null,"liveGiftElement":null,"markdownElement":null,"structLongMsgElement":null,"multiForwardMsgElement":null,"giphyElement":null,"walletElement":null,"inlineKeyboardElement":null,"textGiftElement":null,"calendarElement":null,"yoloGameResultElement":null,"avRecordElement":null,"structMsgElement":null,"faceBubbleElement":null,"shareLocationElement":null,"tofuRecordElement":null,"taskTopMsgElement":null,"recommendedMsgElement":null,"actionBarElement":null},{"elementType":1,"elementId":"7378917037107101260","extBufForUI":"0x","textElement":{"content":" ","atType":0,"atUid":"0","atTinyId":"0","atNtUid":"","subElementType":0,"atChannelId":"0","linkInfo":null,"atRoleId":"0","atRoleColor":0,"atRoleName":"","needNotify":0},"faceElement":null,"marketFaceElement":null,"replyElement":null,"picElement":null,"pttElement":null,"videoElement":null,"grayTipElement":null,"arkElement":null,"fileElement":null,"liveGiftElement":null,"markdownElement":null,"structLongMsgElement":null,"multiForwardMsgElement":null,"giphyElement":null,"walletElement":null,"inlineKeyboardElement":null,"textGiftElement":null,"calendarElement":null,"yoloGameResultElement":null,"avRecordElement":null,"structMsgElement":null,"faceBubbleElement":null,"shareLocationElement":null,"tofuRecordElement":null,"taskTopMsgElement":null,"recommendedMsgElement":null,"actionBarElement":null},{"elementType":1,"elementId":"7378917037107101261","extBufForUI":"0x","textElement":{"content":"欢迎宝子加入,玩的开心哟🧸🧸🧸","atType":0,"atUid":"0","atTinyId":"0","atNtUid":"","subElementType":0,"atChannelId":"0","linkInfo":null,"atRoleId":"0","atRoleColor":0,"atRoleName":"","needNotify":0},"faceElement":null,"marketFaceElement":null,"replyElement":null,"picElement":null,"pttElement":null,"videoElement":null,"grayTipElement":null,"arkElement":null,"fileElement":null,"liveGiftElement":null,"markdownElement":null,"structLongMsgElement":null,"multiForwardMsgElement":null,"giphyElement":null,"walletElement":null,"inlineKeyboardElement":null,"textGiftElement":null,"calendarElement":null,"yoloGameResultElement":null,"avRecordElement":null,"structMsgElement":null,"faceBubbleElement":null,"shareLocationElement":null,"tofuRecordElement":null,"taskTopMsgElement":null,"recommendedMsgElement":null,"actionBarElement":null}],"records":[],"emojiLikesList":[],"commentCnt":"0","directMsgFlag":0,"directMsgMembers":[],"peerName":"xxxx机器人测试群","freqLimitInfo":null,"editable":false,"avatarMeta":"","avatarPendant":"","feedId":"","roleId":"0","timeStamp":"0","clientIdentityInfo":null,"isImportMsg":false,"atType":2,"roleType":0,"fromChannelRoleInfo":{"roleId":"0","name":"","color":0},"fromGuildRoleInfo":{"roleId":"0","name":"","color":0},"levelRoleInfo":{"roleId":"0","name":"","color":0},"recallTime":"0","isOnlineMsg":true,"generalFlags":"0x","clientSeq":"0","fileGroupSize":null,"foldingInfo":null,"multiTransInfo":null,"senderUin":"285xxxx10","peerUin":"955xxxx29","msgAttrs":{},"anonymousExtInfo":null,"nameType":0,"avatarFlag":0,"extInfoForUI":null,"personalMedal":null,"categoryManage":0,"msgEventInfo":null,"id":-2147464071} 
2024-06-11 00:46:44 [DEBUG] 斯卡蒂ㅤ⁧~喵,⁧‭(165xxxx30) | 收到消息:  {"self_id":165xxxx30,"user_id":285xxxx10,"time":1718038003,"message_id":-2147464071,"message_seq":-2147464071,"real_id":-2147464071,"message_type":"group","sender":{"user_id":285xxxx10,"nickname":"Q群管家","card":"","role":"member"},"raw_message":"[CQ:at,qq=121xxxx58]欢迎宝子加入,玩的开心哟🧸🧸🧸","font":14,"sub_type":"normal","message":"[CQ:at,qq=121xxxx58]欢迎宝子加入,玩的开心哟🧸🧸🧸","message_format":"string","post_type":"message","group_id":955xxxx29} 
2024-06-11 00:46:44 [DEBUG] 斯卡蒂ㅤ⁧~喵,⁧‭(165xxxx30) | ws 消息上报 ws://127.0.0.1:54321/onebot/v11/ws/ {"self_id":165xxxx30,"user_id":285xxxx10,"time":1718038003,"message_id":-2147464071,"message_seq":-2147464071,"real_id":-2147464071,"message_type":"group","sender":{"user_id":285xxxx10,"nickname":"Q群管家","card":"","role":"member"},"raw_message":"[CQ:at,qq=121xxxx58]欢迎宝子加入,玩的开心哟🧸🧸🧸","font":14,"sub_type":"normal","message":"[CQ:at,qq=121xxxx58]欢迎宝子加入,玩的开心哟🧸🧸🧸","message_format":"string","post_type":"message","group_id":955xxxx29} 
2024-06-11 00:46:44 [INFO] 斯卡蒂ㅤ⁧~喵,⁧‭(165xxxx30) | 群[xxxx机器人测试群(限量收人版)(955xxxx29)] Q群管家(285xxxx10): [CQ:at,qq=121xxxx58]欢迎宝子加入,玩的开心哟🧸🧸🧸 
2024-06-11 00:46:45 [DEBUG] 斯卡蒂ㅤ⁧~喵,⁧‭(165xxxx30) | 收到新消息 {"msgId":"7378917045792232642","msgRandom":"2048862988","msgSeq":"1847050","cntSeq":"0","chatType":2,"msgType":2,"subMsgType":1,"sendType":0,"senderUid":"u_UxdE1BCVeUURUHuh3Tym6Q","peerUid":"545xxxx33","channelId":"","guildId":"","guildCode":"0","fromUid":"0","fromAppid":"0","msgTime":"1718038005","msgMeta":"0x","sendStatus":2,"sendRemarkName":"","sendMemberName":"💛1","sendNickName":"","guildName":"","channelName":"","elements":[{"elementType":1,"elementId":"7378917045792232641","extBufForUI":"0x","textElement":{"content":"上号联通","atType":0,"atUid":"0","atTinyId":"0","atNtUid":"","subElementType":0,"atChannelId":"0","linkInfo":null,"atRoleId":"0","atRoleColor":0,"atRoleName":"","needNotify":0},"faceElement":null,"marketFaceElement":null,"replyElement":null,"picElement":null,"pttElement":null,"videoElement":null,"grayTipElement":null,"arkElement":null,"fileElement":null,"liveGiftElement":null,"markdownElement":null,"structLongMsgElement":null,"multiForwardMsgElement":null,"giphyElement":null,"walletElement":null,"inlineKeyboardElement":null,"textGiftElement":null,"calendarElement":null,"yoloGameResultElement":null,"avRecordElement":null,"structMsgElement":null,"faceBubbleElement":null,"shareLocationElement":null,"tofuRecordElement":null,"taskTopMsgElement":null,"recommendedMsgElement":null,"actionBarElement":null}],"records":[],"emojiLikesList":[],"commentCnt":"0","directMsgFlag":0,"directMsgMembers":[],"peerName":"QQ飞车截图群","freqLimitInfo":null,"editable":false,"avatarMeta":"","avatarPendant":"","feedId":"","roleId":"0","timeStamp":"0","clientIdentityInfo":null,"isImportMsg":false,"atType":0,"roleType":0,"fromChannelRoleInfo":{"roleId":"0","name":"","color":0},"fromGuildRoleInfo":{"roleId":"0","name":"","color":0},"levelRoleInfo":{"roleId":"0","name":"","color":0},"recallTime":"0","isOnlineMsg":true,"generalFlags":"0x","clientSeq":"0","fileGroupSize":null,"foldingInfo":null,"multiTransInfo":null,"senderUin":"258xxxx10","peerUin":"545xxxx33","msgAttrs":{},"anonymousExtInfo":null,"nameType":0,"avatarFlag":0,"extInfoForUI":null,"personalMedal":null,"categoryManage":0,"msgEventInfo":null,"id":-2147464070} 
2024-06-11 00:46:45 [DEBUG] 斯卡蒂ㅤ⁧~喵,⁧‭(165xxxx30) | 收到消息:  {"self_id":165xxxx30,"user_id":258xxxx10,"time":1718038005,"message_id":-2147464070,"message_seq":-2147464070,"real_id":-2147464070,"message_type":"group","sender":{"user_id":258xxxx10,"nickname":"123456789","card":"💛1","role":"member"},"raw_message":"上号联通","font":14,"sub_type":"normal","message":"上号联通","message_format":"string","post_type":"message","group_id":545xxxx33} 
2024-06-11 00:46:45 [DEBUG] 斯卡蒂ㅤ⁧~喵,⁧‭(165xxxx30) | ws 消息上报 ws://127.0.0.1:54321/onebot/v11/ws/ {"self_id":165xxxx30,"user_id":258xxxx10,"time":1718038005,"message_id":-2147464070,"message_seq":-2147464070,"real_id":-2147464070,"message_type":"group","sender":{"user_id":258xxxx10,"nickname":"123456789","card":"💛1","role":"member"},"raw_message":"上号联通","font":14,"sub_type":"normal","message":"上号联通","message_format":"string","post_type":"message","group_id":545xxxx33}

OneBot 客户端运行日志

No response

[BUG] 收到好友请求消息上报中未找到 加好友请求 的request上报

系统版本

Ubuntu 22.04

QQNT 版本

linux3.2.8-23873

NapCat 版本

1.5.2

OneBot 客户端

应该不关键?

发生了什么?

在收到好友请求时 只收到了notice上报,log如下:
| ws 消息上报 {"time":1717825502,"self_id":93xxxx365,"post_type":"notice","notice_type":"friend_add","user_id":8xxx67641}
没有找到对应的加好友请求的request上报 没有对应request的flag值没法处理加好友请求

如何复现

找人加一下好友(?)

期望的结果?

加个request上报(?)

NapCat 运行日志

ws 消息上报  {"time":1717825502,"self_id":93xxxx365,"post_type":"notice","notice_type":"friend_add","user_id":8xxx67641}

OneBot 客户端运行日志

No response

[BUG] 群成员名片变更事件失效

系统版本

Ubuntu 22.04.4 LTS

QQNT 版本

Linux 3.2.8-23873 amd64

NapCat 版本

1.4.2

OneBot 客户端

obv11

发生了什么?

更新到1.4.1及1.4.2之后发现群成员名片变更事件失效,1.4.0及之前版本可以正常收到事件

如何复现

napcat升级到1.4.1及之后的1.4.2版本
更新群名片

期望的结果?

可以正常收到事件上报

NapCat 运行日志

2024-05-30 13:23:38 [DEBUG] bot(18******15)
收到消息 [{"msgId":"7374659067709296711","msgRandom":"1140769144","msgSeq":"2057","cntSeq":"0","chatType":2,"msgType":2,"subMsgType":1,"sendType":0,"senderUid":"u_iVP-x-XKovf42tsfCVO_oQ","peerUid":"96*****10","channelId":"","guildId":"","guildCode":"0","fromUid":"0","fromAppid":"0","msgTime":"1717046617","msgMeta":"0x","sendStatus":2,"sendRemarkName":"14******30","sendMemberName":"❌❌","sendNickName":"","guildName":"","channelName":"","elements":[{"elementType":1,"elementId":"7374659067709296710","extBufForUI":"0x","textElement":{"content":"0","atType":0,"atUid":"0","atTinyId":"0","atNtUid":"","subElementType":0,"atChannelId":"0","linkInfo":null,"atRoleId":"0","atRoleColor":0,"atRoleName":"","needNotify":0},"faceElement":null,"marketFaceElement":null,"replyElement":null,"picElement":null,"pttElement":null,"videoElement":null,"grayTipElement":null,"arkElement":null,"fileElement":null,"liveGiftElement":null,"markdownElement":null,"structLongMsgElement":null,"multiForwardMsgElement":null,"giphyElement":null,"walletElement":null,"inlineKeyboardElement":null,"textGiftElement":null,"calendarElement":null,"yoloGameResultElement":null,"avRecordElement":null,"structMsgElement":null,"faceBubbleElement":null,"shareLocationElement":null,"tofuRecordElement":null,"taskTopMsgElement":null,"recommendedMsgElement":null,"actionBarElement":null}],"records":[],"emojiLikesList":[],"commentCnt":"0","directMsgFlag":0,"directMsgMembers":[],"peerName":"group","freqLimitInfo":null,"editable":false,"avatarMeta":"","avatarPendant":"","feedId":"","roleId":"0","timeStamp":"0","clientIdentityInfo":null,"isImportMsg":false,"atType":0,"roleType":0,"fromChannelRoleInfo":{"roleId":"0","name":"","color":0},"fromGuildRoleInfo":{"roleId":"0","name":"","color":0},"levelRoleInfo":{"roleId":"0","name":"","color":0},"recallTime":"0","isOnlineMsg":true,"generalFlags":"0x","clientSeq":"0","fileGroupSize":null,"foldingInfo":null,"multiTransInfo":null,"senderUin":"14******30","peerUin":"96*****10","msgAttrs":{},"anonymousExtInfo":null,"nameType":0,"avatarFlag":0,"extInfoForUI":null,"personalMedal":null,"categoryManage":0,"msgEventInfo":null}]

2024-05-30 13:23:38 [DEBUG] bot(18******15)
收到新消息 {"msgId":"7374659067709296711","msgRandom":"1140769144","msgSeq":"2057","cntSeq":"0","chatType":2,"msgType":2,"subMsgType":1,"sendType":0,"senderUid":"u_iVP-x-XKovf42tsfCVO_oQ","peerUid":"96*****10","channelId":"","guildId":"","guildCode":"0","fromUid":"0","fromAppid":"0","msgTime":"1717046617","msgMeta":"0x","sendStatus":2,"sendRemarkName":"14******30","sendMemberName":"❌❌","sendNickName":"","guildName":"","channelName":"","elements":[{"elementType":1,"elementId":"7374659067709296710","extBufForUI":"0x","textElement":{"content":"0","atType":0,"atUid":"0","atTinyId":"0","atNtUid":"","subElementType":0,"atChannelId":"0","linkInfo":null,"atRoleId":"0","atRoleColor":0,"atRoleName":"","needNotify":0},"faceElement":null,"marketFaceElement":null,"replyElement":null,"picElement":null,"pttElement":null,"videoElement":null,"grayTipElement":null,"arkElement":null,"fileElement":null,"liveGiftElement":null,"markdownElement":null,"structLongMsgElement":null,"multiForwardMsgElement":null,"giphyElement":null,"walletElement":null,"inlineKeyboardElement":null,"textGiftElement":null,"calendarElement":null,"yoloGameResultElement":null,"avRecordElement":null,"structMsgElement":null,"faceBubbleElement":null,"shareLocationElement":null,"tofuRecordElement":null,"taskTopMsgElement":null,"recommendedMsgElement":null,"actionBarElement":null}],"records":[],"emojiLikesList":[],"commentCnt":"0","directMsgFlag":0,"directMsgMembers":[],"peerName":"group","freqLimitInfo":null,"editable":false,"avatarMeta":"","avatarPendant":"","feedId":"","roleId":"0","timeStamp":"0","clientIdentityInfo":null,"isImportMsg":false,"atType":0,"roleType":0,"fromChannelRoleInfo":{"roleId":"0","name":"","color":0},"fromGuildRoleInfo":{"roleId":"0","name":"","color":0},"levelRoleInfo":{"roleId":"0","name":"","color":0},"recallTime":"0","isOnlineMsg":true,"generalFlags":"0x","clientSeq":"0","fileGroupSize":null,"foldingInfo":null,"multiTransInfo":null,"senderUin":"14******30","peerUin":"96*****10","msgAttrs":{},"anonymousExtInfo":null,"nameType":0,"avatarFlag":0,"extInfoForUI":null,"personalMedal":null,"categoryManage":0,"msgEventInfo":null,"id":-2147403686}

2024-05-30 13:23:38 [DEBUG] bot(18******15)
收到消息:  {"self_id":18******15,"user_id":14******30,"time":1717046617,"message_id":-2147403686,"message_seq":-2147403686,"real_id":-2147403686,"message_type":"group","sender":{"user_id":14******30,"nickname":"14******30","card":"❌❌","role":"admin"},"raw_message":"0","font":14,"sub_type":"normal","message":[{"data":{"text":"0"},"type":"text"}],"message_format":"array","post_type":"message","group_id":96*****10}

2024-05-30 13:23:38 [DEBUG] bot(18******15)
ws 消息上报 ws://127.0.0.1:8888/onebot/v11/ws {"self_id":18******15,"user_id":14******30,"time":1717046617,"message_id":-2147403686,"message_seq":-2147403686,"real_id":-2147403686,"message_type":"group","sender":{"user_id":14******30,"nickname":"14******30","card":"❌❌","role":"admin"},"raw_message":"0","font":14,"sub_type":"normal","message":[{"data":{"text":"0"},"type":"text"}],"message_format":"array","post_type":"message","group_id":96*****10}

2024-05-30 13:23:38 [INFO] bot(18******15)
群[group(96*****10)] 14******30(14******30): 0


2024-05-30 13:23:42 [DEBUG] bot(18******15)
ws 消息上报 ws://127.0.0.1:8888/onebot/v11/ws {"time":1717046622,"self_id":18******15,"post_type":"meta_event","meta_event_type":"heartbeat","status":{"online":true,"good":true},"interval":30000}

2024-05-30 13:24:06 [DEBUG] bot(18******15)
收到消息 [{"msgId":"7374659187950930100","msgRandom":"1385420422","msgSeq":"2058","cntSeq":"0","chatType":2,"msgType":2,"subMsgType":1,"sendType":0,"senderUid":"u_iVP-x-XKovf42tsfCVO_oQ","peerUid":"96*****10","channelId":"","guildId":"","guildCode":"0","fromUid":"0","fromAppid":"0","msgTime":"1717046645","msgMeta":"0x","sendStatus":2,"sendRemarkName":"14******30","sendMemberName":"⭕⭕","sendNickName":"","guildName":"","channelName":"","elements":[{"elementType":1,"elementId":"7374659187950930099","extBufForUI":"0x","textElement":{"content":"2","atType":0,"atUid":"0","atTinyId":"0","atNtUid":"","subElementType":0,"atChannelId":"0","linkInfo":null,"atRoleId":"0","atRoleColor":0,"atRoleName":"","needNotify":0},"faceElement":null,"marketFaceElement":null,"replyElement":null,"picElement":null,"pttElement":null,"videoElement":null,"grayTipElement":null,"arkElement":null,"fileElement":null,"liveGiftElement":null,"markdownElement":null,"structLongMsgElement":null,"multiForwardMsgElement":null,"giphyElement":null,"walletElement":null,"inlineKeyboardElement":null,"textGiftElement":null,"calendarElement":null,"yoloGameResultElement":null,"avRecordElement":null,"structMsgElement":null,"faceBubbleElement":null,"shareLocationElement":null,"tofuRecordElement":null,"taskTopMsgElement":null,"recommendedMsgElement":null,"actionBarElement":null}],"records":[],"emojiLikesList":[],"commentCnt":"0","directMsgFlag":0,"directMsgMembers":[],"peerName":"group","freqLimitInfo":null,"editable":false,"avatarMeta":"","avatarPendant":"","feedId":"","roleId":"0","timeStamp":"0","clientIdentityInfo":null,"isImportMsg":false,"atType":0,"roleType":0,"fromChannelRoleInfo":{"roleId":"0","name":"","color":0},"fromGuildRoleInfo":{"roleId":"0","name":"","color":0},"levelRoleInfo":{"roleId":"0","name":"","color":0},"recallTime":"0","isOnlineMsg":true,"generalFlags":"0x","clientSeq":"0","fileGroupSize":null,"foldingInfo":null,"multiTransInfo":null,"senderUin":"14******30","peerUin":"96*****10","msgAttrs":{},"anonymousExtInfo":null,"nameType":0,"avatarFlag":0,"extInfoForUI":null,"personalMedal":null,"categoryManage":0,"msgEventInfo":null}]

2024-05-30 13:24:06 [DEBUG] bot(18******15)
收到新消息 {"msgId":"7374659187950930100","msgRandom":"1385420422","msgSeq":"2058","cntSeq":"0","chatType":2,"msgType":2,"subMsgType":1,"sendType":0,"senderUid":"u_iVP-x-XKovf42tsfCVO_oQ","peerUid":"96*****10","channelId":"","guildId":"","guildCode":"0","fromUid":"0","fromAppid":"0","msgTime":"1717046645","msgMeta":"0x","sendStatus":2,"sendRemarkName":"14******30","sendMemberName":"⭕⭕","sendNickName":"","guildName":"","channelName":"","elements":[{"elementType":1,"elementId":"7374659187950930099","extBufForUI":"0x","textElement":{"content":"2","atType":0,"atUid":"0","atTinyId":"0","atNtUid":"","subElementType":0,"atChannelId":"0","linkInfo":null,"atRoleId":"0","atRoleColor":0,"atRoleName":"","needNotify":0},"faceElement":null,"marketFaceElement":null,"replyElement":null,"picElement":null,"pttElement":null,"videoElement":null,"grayTipElement":null,"arkElement":null,"fileElement":null,"liveGiftElement":null,"markdownElement":null,"structLongMsgElement":null,"multiForwardMsgElement":null,"giphyElement":null,"walletElement":null,"inlineKeyboardElement":null,"textGiftElement":null,"calendarElement":null,"yoloGameResultElement":null,"avRecordElement":null,"structMsgElement":null,"faceBubbleElement":null,"shareLocationElement":null,"tofuRecordElement":null,"taskTopMsgElement":null,"recommendedMsgElement":null,"actionBarElement":null}],"records":[],"emojiLikesList":[],"commentCnt":"0","directMsgFlag":0,"directMsgMembers":[],"peerName":"group","freqLimitInfo":null,"editable":false,"avatarMeta":"","avatarPendant":"","feedId":"","roleId":"0","timeStamp":"0","clientIdentityInfo":null,"isImportMsg":false,"atType":0,"roleType":0,"fromChannelRoleInfo":{"roleId":"0","name":"","color":0},"fromGuildRoleInfo":{"roleId":"0","name":"","color":0},"levelRoleInfo":{"roleId":"0","name":"","color":0},"recallTime":"0","isOnlineMsg":true,"generalFlags":"0x","clientSeq":"0","fileGroupSize":null,"foldingInfo":null,"multiTransInfo":null,"senderUin":"14******30","peerUin":"96*****10","msgAttrs":{},"anonymousExtInfo":null,"nameType":0,"avatarFlag":0,"extInfoForUI":null,"personalMedal":null,"categoryManage":0,"msgEventInfo":null,"id":-2147403685}

2024-05-30 13:24:06 [DEBUG] bot(18******15)
收到消息:  {"self_id":18******15,"user_id":14******30,"time":1717046645,"message_id":-2147403685,"message_seq":-2147403685,"real_id":-2147403685,"message_type":"group","sender":{"user_id":14******30,"nickname":"14******30","card":"⭕⭕","role":"admin"},"raw_message":"2","font":14,"sub_type":"normal","message":[{"data":{"text":"2"},"type":"text"}],"message_format":"array","post_type":"message","group_id":96*****10}

2024-05-30 13:24:06 [DEBUG] bot(18******15)
ws 消息上报 ws://127.0.0.1:8888/onebot/v11/ws {"self_id":18******15,"user_id":14******30,"time":1717046645,"message_id":-2147403685,"message_seq":-2147403685,"real_id":-2147403685,"message_type":"group","sender":{"user_id":14******30,"nickname":"14******30","card":"⭕⭕","role":"admin"},"raw_message":"2","font":14,"sub_type":"normal","message":[{"data":{"text":"2"},"type":"text"}],"message_format":"array","post_type":"message","group_id":96*****10}

2024-05-30 13:24:06 [INFO] bot(18******15)
群[group(96*****10)] 14******30(14******30): 2

OneBot 客户端运行日志

什么也没有

在1.4.1版本get_msg无法获取消息

系统版本

windows 11

QQNT 版本

9.9.10-24108

NapCat 版本

1.4.1

OneBot 客户端

发生了什么?

在1.4.1版本中用get_msg无法获取消息
Uploading 1.png…
在1.3.2版本中是可以使用get_msg来获取消息
2

如何复现

1

期望的结果?

能否跟1.3.2版本一样请求获取

NapCat 运行日志

No response

OneBot 客户端运行日志

No response

[BUG] Linux版本启动报错,以及 Supervisor 运行问题

系统版本

Ubuntu 22.04 LTS

QQNT 版本

2.3.7-23361

NapCat 版本

v1.2.0(beta)

OneBot 客户端

nonebot

发生了什么?

启动的时候报错

 [ERROR] - 
加载 moehoo 失败 {"code":"MODULE_NOT_FOUND","requireStack":["/root/NapCat/NapCat.linux.x64/napcat.cjs"]} 

后续可以正常使用,暂时没发现别的问题

另外我想使用Supervisor来运行NapCat,日志显示启动成功后就重启,配置如下

[program:napcat]
command                 = bash ./napcat.sh -q 1234567890
directory               = /root/NapCat/NapCat.linux.x64
autorestart             = true
startsecs               = 3
stdout_logfile          = /opt/1panel/tools/supervisord/log/napcat.out.log
stderr_logfile          = /opt/1panel/tools/supervisord/log/napcat.err.log
stdout_logfile_maxbytes = 2MB
stderr_logfile_maxbytes = 2MB
user                    = root
priority                = 999
numprocs                = 1
process_name            = %(program_name)s_%(process_num)02d

如何复现

100%复现

期望的结果?

启动不报error
能使用Supervisor

NapCat 运行日志

Supervisor日志,一直在循环:
2024-05-07 16:24:14 [ERROR] - 
加载 moehoo 失败 {"code":"MODULE_NOT_FOUND","requireStack":["/root/NapCat/NapCat.linux.x64/napcat.cjs"]} 

2024-05-07 16:24:14 [INFO] - 
正在快速登录  1234567890

2024-05-07 16:24:15 [INFO] - 
[NapCat]  当前版本: 1.2.0 

2024-05-07 16:24:15 [DEBUG] - 
[NapCat]  当前已是最新版本 

linux-bugly: init bugly ...
2024-05-07 16:24:23 [ERROR] - 
加载 moehoo 失败 {"code":"MODULE_NOT_FOUND","requireStack":["/root/NapCat/NapCat.linux.x64/napcat.cjs"]} 

2024-05-07 16:24:23 [INFO] - 
正在快速登录  1234567890 

2024-05-07 16:24:24 [INFO] - 
[NapCat]  当前版本: 1.2.0 

2024-05-07 16:24:24 [DEBUG] - 
[NapCat]  当前已是最新版本 

linux-bugly: init bugly ...

OneBot 客户端运行日志

No response

[BUG] bot私聊信息发不出来,并且导致程序崩溃

系统版本

ubuntu

QQNT 版本

QQ_3.2.7_240428_amd64

NapCat 版本

1.3.3

OneBot 客户端

yobot_remix v4.0.2

发生了什么?

对bot私聊触发词后,bot返回的私聊信息发不出去,并且报错崩溃。但同时bot在群聊中能正常发出消息。

如何复现

1.使用反向WebSocket监听对接yobot
2.启用HTTP 事件上报,将yobot的默认页面设置为HTTP 事件上报地址
3.对bot私聊触发词version,或者任何其他触发词

期望的结果?

应在私聊中正常返回bot版本号,并且不崩溃

NapCat 运行日志

发送消息 给私聊 0: Remix-&#91;v4.0.2&#93;

node:internal/process/promises:288
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "发送超时".] {
  code: 'ERR_UNHANDLED_REJECTION'
}

Node.js v18.18.2

OneBot 客户端运行日志

[2024-05-16 20:40:46 +0000] [498865] [INFO] 127.0.0.1:59248 POST / 1.1 204 0 2352
[2024-05-16 20:40:46 +0000] [498865] [INFO] 127.0.0.1:59248 POST / 1.1 - - 2654
[2024-05-16 20:42:32,147] WARNING in __init__: there is already a reverse websocket api connection, so the event may be handled twice.
[2024-05-16 20:42:32 +0000] [498865] [INFO] 127.0.0.1:40398 POST / 1.1 204 0 1469
[2024-05-16 20:42:32 +0000] [498865] [INFO] 127.0.0.1:40398 POST / 1.1 - - 1855
[2024-05-16 20:42:51,938] WARNING in __init__: there is already a reverse websocket api connection, so the event may be handled twice.
[2024-05-16 20:42:51 +0000] [498865] [INFO] 127.0.0.1:53126 POST / 1.1 204 0 1946
[2024-05-16 20:42:51 +0000] [498865] [INFO] 127.0.0.1:53126 POST / 1.1 - - 2189
[2024-05-16 20:43:49,818] WARNING in __init__: there is already a reverse websocket api connection, so the event may be handled twice.
[2024-05-16 20:43:49 +0000] [498865] [INFO] 127.0.0.1:49944 POST / 1.1 204 0 2704
[2024-05-16 20:43:49 +0000] [498865] [INFO] 127.0.0.1:49944 POST / 1.1 - - 3035
[2024-05-16 20:43:55,191] WARNING in __init__: there is already a reverse websocket api connection, so the event may be handled twice.
[2024-05-16 20:43:55 +0000] [498865] [INFO] 127.0.0.1:36556 POST / 1.1 204 0 1669
[2024-05-16 20:43:55 +0000] [498865] [INFO] 127.0.0.1:36556 POST / 1.1 - - 1896
[2024-05-16 20:44:12,928] WARNING in __init__: there is already a reverse websocket api connection, so the event may be handled twice.
[2024-05-16 20:44:12 +0000] [498865] [INFO] 127.0.0.1:50476 POST / 1.1 204 0 3079
[2024-05-16 20:44:12 +0000] [498865] [INFO] 127.0.0.1:50476 POST / 1.1 - - 4453
[2024-05-16 20:44:18,106] WARNING in __init__: there is already a reverse websocket api connection, so the event may be handled twice.
[2024-05-16 20:44:18 +0000] [498865] [INFO] 127.0.0.1:50486 POST / 1.1 204 0 1854
[2024-05-16 20:44:18 +0000] [498865] [INFO] 127.0.0.1:50486 POST / 1.1 - - 2087
[2024-05-16 20:44:29,397] WARNING in __init__: there is already a reverse websocket api connection, so the event may be handled twice.
[2024-05-16 20:44:29 +0000] [498865] [INFO] 127.0.0.1:35958 POST / 1.1 204 0 1431
[2024-05-16 20:44:29 +0000] [498865] [INFO] 127.0.0.1:35958 POST / 1.1 - - 1696
[2024-05-16 20:45:05 +0000] [498865] [INFO] 127.0.0.1:45758 GET /ws/ 1.1 101 - 700
[2024-05-16 20:45:11,350] WARNING in __init__: there is already a reverse websocket api connection, so the event may be handled twice.
[2024-05-16 20:45:11 +0000] [498865] [INFO] 127.0.0.1:34238 POST / 1.1 204 0 1566
[2024-05-16 20:45:11 +0000] [498865] [INFO] 127.0.0.1:34238 POST / 1.1 - - 1825
[2024-05-16 20:45:23,513] WARNING in __init__: there is already a reverse websocket api connection, so the event may be handled twice.
[2024-05-16 20:45:23 +0000] [498865] [INFO] 127.0.0.1:43874 POST / 1.1 204 0 1905
[2024-05-16 20:45:23 +0000] [498865] [INFO] 127.0.0.1:43874 POST / 1.1 - - 2338
[2024-05-16 20:45:30,985] WARNING in __init__: there is already a reverse websocket api connection, so the event may be handled twice.
[2024-05-16 20:45:30 +0000] [498865] [INFO] 127.0.0.1:46678 POST / 1.1 200 44 1571
[2024-05-16 20:45:30 +0000] [498865] [INFO] 127.0.0.1:46678 POST / 1.1 - - 1824
[2024-05-16 20:45:58 +0000] [498865] [INFO] 127.0.0.1:58502 GET /ws/ 1.1 101 - 870
[2024-05-16 20:48:06,579] WARNING in __init__: there is already a reverse websocket api connection, so the event may be handled twice.
[2024-05-16 20:48:06 +0000] [498865] [INFO] 127.0.0.1:33326 POST / 1.1 204 0 1626
[2024-05-16 20:48:06 +0000] [498865] [INFO] 127.0.0.1:33326 POST / 1.1 - - 1878
[2024-05-16 20:48:06,918] WARNING in __init__: there is already a reverse websocket api connection, so the event may be handled twice.
[2024-05-16 20:48:06 +0000] [498865] [INFO] 127.0.0.1:33326 POST / 1.1 204 0 2486
[2024-05-16 20:48:06 +0000] [498865] [INFO] 127.0.0.1:33326 POST / 1.1 - - 2753
[2024-05-16 20:49:29,951] WARNING in __init__: there is already a reverse websocket api connection, so the event may be handled twice.
[2024-05-16 20:49:29 +0000] [498865] [INFO] 127.0.0.1:34272 POST / 1.1 204 0 1518
[2024-05-16 20:49:29 +0000] [498865] [INFO] 127.0.0.1:34272 POST / 1.1 - - 2175
[2024-05-16 20:49:31,106] WARNING in __init__: there is already a reverse websocket api connection, so the event may be handled twice.
[2024-05-16 20:49:31 +0000] [498865] [INFO] 127.0.0.1:34272 POST / 1.1 204 0 7393
[2024-05-16 20:49:31 +0000] [498865] [INFO] 127.0.0.1:34272 POST / 1.1 - - 7770
[2024-05-16 20:50:29,755] WARNING in __init__: there is already a reverse websocket api connection, so the event may be handled twice.
[2024-05-16 20:50:29 +0000] [498865] [INFO] 127.0.0.1:36970 POST / 1.1 204 0 2240
[2024-05-16 20:50:29 +0000] [498865] [INFO] 127.0.0.1:36970 POST / 1.1 - - 2604
[2024-05-16 20:53:57,216] WARNING in __init__: there is already a reverse websocket api connection, so the event may be handled twice.
[2024-05-16 20:53:57 +0000] [498865] [INFO] 127.0.0.1:50980 POST / 1.1 204 0 2277
[2024-05-16 20:53:57 +0000] [498865] [INFO] 127.0.0.1:50980 POST / 1.1 - - 2925
[2024-05-16 20:54:21,198] WARNING in __init__: there is already a reverse websocket api connection, so the event may be handled twice.
[2024-05-16 20:54:21 +0000] [498865] [INFO] 127.0.0.1:60708 POST / 1.1 204 0 1857
[2024-05-16 20:54:21 +0000] [498865] [INFO] 127.0.0.1:60708 POST / 1.1 - - 2085

[BUG] 发送群聊合并转发API(send_group_forward_msg)无法正确显示转发内容的昵称与id

系统版本

Windows Server 2012 R2 Datacenter

QQNT 版本

9.9.10-24108

NapCat 版本

1.5.2

OneBot 客户端

nonebot2 2.2.1

发生了什么?

发送群聊合并转发API(send_group_forward_msg)无法正确显示转发内容的昵称与id

不论转发消息内的消息node里的uin和name填写什么,发送出去后,在qq客户端内查看都显示为bot本身的头像和昵称

参考gocq的api文档

/send_group_forward_msg


定义表格

字段 类型 说明
group_id int64 群号
messages forward node[] 自定义转发消息

合并转发消息节点

字段 类型 说明 特殊说明
id int32 转发消息id 直接引用他人的消息合并转发, 实际查看顺序为原消息发送顺序 与下面的自定义消息二选一
name string 发送者显示名字 用于自定义消息 (自定义消息并合并转发, 实际查看顺序为自定义消息段顺序)
uin int64 发送者QQ号 用于自定义消息
content message 具体消息 用于自定义消息 不支持转发套娃
seq message 具体消息 用于自定义消息

如何复现

  1. 在编写nonebot2插件的测试用matcher
import time

from nonebot.adapters import Bot
from nonebot.adapters.onebot.v11.event import GroupMessageEvent
from nonebot import on_fullmatch
from nonebot.permission import SUPERUSER
from nonebot.adapters.onebot.v11.message import MessageSegment

test_forward = on_fullmatch("测试合并转发",permission=SUPERUSER,priority=1,block=False)
def node_custom(
    user_id: int, name: str, time: int, content: MessageSegment
) -> "MessageSegment":
    return MessageSegment(
        type="node",
        data={"uin": user_id, "name": name, "content": content, "time": time},
    )
@test_forward.handle()
async def _(bot: Bot, event: GroupMessageEvent):
    message_list: list[MessageSegment] = list()
    message_list.append(
        node_custom(
            content=MessageSegment.text("这里是内容"),
            user_id=28542【除了机器人以外随便谁的qq号】02507,
            name="显示的昵称",
            time=int(time.time()),
        )
    )
    await bot.send_group_forward_msg(group_id=event.group_id, messages=message_list)
  1. 使用SUPERUSER账号在bot所在的群发送 测试合并转发
  2. bot发送的合并转发消息内容的头像及昵称全是bot本身而非代码里指定的昵称和qq号对应的头像

期望的结果?

bot发送的群聊合并转发消息内容应该和代码中指定的头像及id一致

NapCat 运行日志

2024-06-09 15:58:11 [INFO] BOT(357XXXXX65) | 群[群(54XXXXX11)] SUPERUSER(85XXXXX61): 测试合并转发 
2024-06-09 15:58:11 [INFO] BOT(357XXXXX65) | 发送消息 给私聊 357XXXXX65: 这里是内容 
2024-06-09 15:58:12 [DEBUG] BOT(357XXXXX65) | 开发转发 {"chatType":1,"peerUid":"u_3YIAO0xxxxxlLE3x8xZHkg"} {"chatType":2,"peerUid":"54XXXXX11"} ["7378409746039500000"] 
2024-06-09 15:58:12 [INFO] BOT(357XXXXX65) | 发送消息 给群聊 群[群(54XXXXX11)] : [json|{"data":"{\"app\":\"com.tencent.multimsg\",\"config\":{\"autosize\":1,\"forward\":1,\"round\":1,\"type\":\"normal\",\"width\":300},\"desc\":\"[聊天记录]\",\"extra\":\"{\\\"filename\\\":\\\"MultiMsg\\\",\\\"tsum\\\":1}\\n\",\"meta\":{\"detail\":{\"news\":[{\"text\":\"BOT: 这里是内容\"}],\"resid\":\"\",\"source\":\"BOT的聊天记录\",\"summary\":\"查看1条转发消息\",\"uniseq\":\"MultiMsg\"}},\"prompt\":\"[聊天记录]\",\"ver\":\"0.0.0.5\",\"view\":\"contact\"}\n"}] 
2024-06-09 15:58:12 [DEBUG] BOT(357XXXXX65) | ws 消息上报 ws://127.0.0.1:8080/onebot/v11/ {"status":"ok","retcode":0,"data":{"message_id":-2147480000},"message":"","wording":"","echo":"27"}

OneBot 客户端运行日志

No response

[BUG] send_like

系统版本

Windows 11

QQNT 版本

9.9.10-24108 (64位)

NapCat 版本

1.5.1

OneBot 客户端

none

发生了什么?

使用http方式访问http://127.0.0.1:3000/send_like?user_id=xxx&times=10的时候发生
{ "status": "failed", "retcode": 400, "data": null, "message": "Key: times, Message: must be number", "wording": "Key: times, Message: must be number", "echo": null }

如何复现

使用http get请求http://127.0.0.1:3000/send_like?user_id=xxx&times=10

期望的结果?

把times传入数据尝试转成int类型,如果失败再报错

NapCat 运行日志

2024-06-04 17:14:22 [DEBUG] xx(xxx) 
收到http请求 /send_like {"user_id":"xxx","times":"10"}

OneBot 客户端运行日志

No response

[ISSUE]希望给日志占用空间优化

系统版本

Windows Sever 2019 Datacenter

QQNT 版本

QQ9.9.9.23361_x64

NapCat 版本

NapCat V1.2.0

OneBot 客户端

OneBot 11

发生了什么?

开发者你好,这个日志的功能可以优化么,我加的群比较多 挂在服务器上一天就要用掉一G的硬盘大小,空间用完了就会出现“SQLLITE FULL"错误
3d48ed96a293aefa48989f7ccb45c4e7
image

19d5da174b1f7acd497b42bd9ae5283f

如何复现

持续挂在服务器上超过24小时
空间占用超过1G(群聊多的情况下)

期望的结果?

减少硬盘占用的开销

NapCat 运行日志

No response

OneBot 客户端运行日志

No response

[BUG] 没有收到群成员减少事件

系统版本

Ubuntu 22.04.4 LTS

QQNT 版本

Linux 3.2.7-23361

NapCat 版本

1.3.3

OneBot 客户端

None

发生了什么?

Napcat没有接收到群成员减少事件,控制台无输出无日志

如何复现

群组成员主动退群/被踢出

期望的结果?

修复添加群成员减少事件的支持

NapCat 运行日志

No response

OneBot 客户端运行日志

No response

[BUG] 成功发送了图片但仍然报错

系统版本

win server 2022

QQNT 版本

QQ9.9.9.23361_x64

NapCat 版本

1.3.5

OneBot 客户端

nonebot-adapter-onebot-v11

发生了什么?

bot发送了某条带图片的消息,发送成功了,但是控制台报错

如何复现

发送图片(应该?)

期望的结果?

不报错

NapCat 运行日志

2024-05-19 16:48:49 [DEBUG] 波奇呀波奇(xxxxxx) 
收到反向Websocket消息 {"action":"send_msg","params":{"user_id":xxxxxx,"group_id":xxxxxx,"message_type":"group","message":[{"type":"at","data":{"qq":"xxxxxx"}},{"type":"text","data":{"text":" "}},{"type":"image","data":{"file":"base64:///9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAeoBDgDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NX...","type":null,"cache":"true","proxy":"true","timeout":null}}]},"echo":"256"} 

2024-05-19 16:48:49 [INFO] 波奇呀波奇(2029172546) 
获取文件类型 jpg C:\Users\Administrator\Documents\Tencent Files\NapCat\temp\7276624a-b960-4732-8002-18bde9e51ae0 

2024-05-19 16:48:49 [DEBUG] 波奇呀波奇(xxxxxx) 
图片信息 {"md5HexStr":"b2d9feae5179bf12238742373377a50f","fileSize":"436644","picWidth":1080,"picHeight":1960,"fileName":"7276624a-b960-4732-8002-18bde9e51ae0.jpg","sourcePath":"C:\\Users\\Administrator\\Documents\\Tencent Files\\xxxxxx\\nt_qq\\nt_data\\Pic\\2024-05\\Ori\\b2d9feae5179bf12238742373377a50f.jpg","original":true,"picType":1000,"picSubType":0,"fileUuid":"","fileSubId":"","thumbFileSize":0,"summary":""} 

2024-05-19 16:48:49 [INFO] 波奇呀波奇(xxxxxx) 
发送消息 给群聊 群[fanco(xxxxxx)] : @😘(xxxxxxx) 
[图片]https://gchat.qpic.cn/gchatpic_new/0/0-0-B2D9FEAE5179BF12238742373377A50F/0
 

2024-05-19 16:48:49 [DEBUG] 波奇呀波奇(xxxxxx) 
记录消息到数据库, 消息长id: 7444847292992317995, 短id: -2147453865 

2024-05-19 16:48:49 [DEBUG] 波奇呀波奇(xxxxxx) 
更新消息, shortId:undefined, seq: 22354, msgId: 7444847292992317995 

2024-05-19 16:48:49 [ERROR] 波奇呀波奇(xxxxxx) 
发生错误 {"errno":-4058,"syscall":"unlink","code":"ENOENT","path":"C:\\Users\\Administrator\\Documents\\Tencent Files\\NapCat\\temp\\7276624a-b960-4732-8002-18bde9e51ae0.jpg"} 

2024-05-19 16:48:49 [DEBUG] 波奇呀波奇(xxxxxx) 
ws 消息上报 ws://127.0.0.1:15600/onebot/v11/ws {"status":"failed","retcode":1200,"data":null,"message":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\Administrator\\Documents\\Tencent Files\\NapCat\\temp\\7276624a-b960-4732-8002-18bde9e51ae0.jpg'\n    at Object.unlinkSync (node:fs:1883:3)\n    at C:\\Users\\Administrator\\Desktop\\NapCat\\napcat.cjs:21726:16932\n    at Array.forEach (<anonymous>)\n    at SendMsg._handle (C:\\Users\\Administrator\\Desktop\\NapCat\\napcat.cjs:21726:16898)\n    at async SendMsg.websocketHandle (C:\\Users\\Administrator\\Desktop\\NapCat\\napcat.cjs:21718:8212)\n    at async Revers...","wording":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\Administrator\\Documents\\Tencent Files\\NapCat\\temp\\7276624a-b960-4732-8002-18bde9e51ae0.jpg'\n    at Object.unlinkSync (node:fs:1883:3)\n    at C:\\Users\\Administrator\\Desktop\\NapCat\\napcat.cjs:21726:16932\n    at Array.forEach (<anonymous>)\n    at SendMsg._handle (C:\\Users\\Administrator\\Desktop\\NapCat\\napcat.cjs:21726:16898)\n    at async SendMsg.websocketHandle (C:\\Users\\Administrator\\Desktop\\NapCat\\napcat.cjs:21718:8212)\n    at async Revers...","echo":"256"}

OneBot 客户端运行日志

05-19 16:48:50 [ERROR] nonebot | Running Matcher(type='message', module=LittlePaimon.plugins.star_rail_info, lineno=28) failed.
Traceback (most recent call last):
  File "C:\Users\Administrator\Desktop\LittlePaimon\bot.py", line 42, in <module>
    nonebot.run(app="__mp_main__:app", access_log=False)
  File "C:\Users\Administrator\Desktop\LittlePaimon\.venv\Lib\site-packages\nonebot\__init__.py", line 335, in run
    get_driver().run(*args, **kwargs)
  File "C:\Users\Administrator\Desktop\LittlePaimon\.venv\Lib\site-packages\nonebot\drivers\fastapi.py", line 186, in run
    uvicorn.run(
  File "C:\Users\Administrator\Desktop\LittlePaimon\.venv\Lib\site-packages\uvicorn\main.py", line 575, in run
    server.run()
  File "C:\Users\Administrator\Desktop\LittlePaimon\.venv\Lib\site-packages\uvicorn\server.py", line 65, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 190, in run
    return runner.run(main)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 640, in run_until_complete
    self.run_forever()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\asyncio\windows_events.py", line 321, in run_forever
    super().run_forever()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 607, in run_forever
    self._run_once()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 1922, in _run_once
    handle._run()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\asyncio\events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "C:\Users\Administrator\Desktop\LittlePaimon\.venv\Lib\site-packages\nonebot\message.py", line 476, in check_and_run_matcher
    await _run_matcher(
> File "C:\Users\Administrator\Desktop\LittlePaimon\.venv\Lib\site-packages\nonebot\message.py", line 428, in _run_matcher
    await matcher.run(bot, event, state, stack, dependency_cache)
  File "C:\Users\Administrator\Desktop\LittlePaimon\.venv\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 850, in run
    await self.simple_run(bot, event, state, stack, dependency_cache)
  File "C:\Users\Administrator\Desktop\LittlePaimon\.venv\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 825, in simple_run
    await handler(
  File "C:\Users\Administrator\Desktop\LittlePaimon\.venv\Lib\site-packages\nonebot\dependencies\__init__.py", line 94, in __call__
    return await cast(Callable[..., Awaitable[R]], self.call)(**values)
  File "C:\Users\Administrator\Desktop\LittlePaimon\LittlePaimon\plugins\star_rail_info\__init__.py", line 94, in panel_cmd_handler
    await panel_cmd.finish(
  File "C:\Users\Administrator\Desktop\LittlePaimon\.venv\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 582, in finish
    await cls.send(message, **kwargs)
  File "C:\Users\Administrator\Desktop\LittlePaimon\.venv\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 566, in send
    return await bot.send(event=event, message=_message, **kwargs)
  File "C:\Users\Administrator\Desktop\LittlePaimon\.venv\Lib\site-packages\nonebot\adapters\onebot\v11\bot.py", line 228, in send
    return await self.__class__.send_handler(self, event, message, **kwargs)
  File "C:\Users\Administrator\Desktop\LittlePaimon\.venv\Lib\site-packages\nonebot\adapters\onebot\v11\bot.py", line 181, in send
    return await bot.send_msg(**params)
  File "C:\Users\Administrator\Desktop\LittlePaimon\.venv\Lib\site-packages\nonebot\internal\adapter\bot.py", line 122, in call_api
    raise exception
  File "C:\Users\Administrator\Desktop\LittlePaimon\.venv\Lib\site-packages\nonebot\internal\adapter\bot.py", line 97, in call_api
    result = await self.adapter._call_api(self, api, **data)
  File "C:\Users\Administrator\Desktop\LittlePaimon\.venv\Lib\site-packages\nonebot\adapters\onebot\v11\adapter.py", line 147, in _call_api
    return handle_api_result(await self._result_store.fetch(seq, timeout))
  File "C:\Users\Administrator\Desktop\LittlePaimon\.venv\Lib\site-packages\nonebot\adapters\onebot\v11\utils.py", line 58, in handle_api_result
    raise ActionFailed(**result)
nonebot.adapters.onebot.v11.exception.ActionFailed: ActionFailed(status='failed', retcode=1200, data=None, message="Error: ENOENT: no such file or directory, unlink 'C:\\Users\\Administrator\\Documents\\Tencent Files\\NapCat\\temp\\7276624a-b960-4732-8002-18bde9e51ae0.jpg'\n    at Object.unlinkSync (node:fs:1883:3)\n    at C:\\Users\\Administrator\\Desktop\\NapCat\\napcat.cjs:21726:16932\n    at Array.forEach (<anonymous>)\n    at SendMsg._handle (C:\\Users\\Administrator\\Desktop\\NapCat\\napcat.cjs:21726:16898)\n    at async SendMsg.websocketHandle (C:\\Users\\Administrator\\Desktop\\NapCat\\napcat.cjs:21718:8212)\n    at async ReverseWebsocket.onmessage (C:\\Users\\Administrator\\Desktop\\NapCat\\napcat.cjs:22353:6179)\n    at async WebSocket.<anonymous> (C:\\Users\\Administrator\\Desktop\\NapCat\\napcat.cjs:22353:9567)", wording="Error: ENOENT: no such file or directory, unlink 'C:\\Users\\Administrator\\Documents\\Tencent Files\\NapCat\\temp\\7276624a-b960-4732-8002-18bde9e51ae0.jpg'\n    at Object.unlinkSync (node:fs:1883:3)\n    at C:\\Users\\Administrator\\Desktop\\NapCat\\napcat.cjs:21726:16932\n    at Array.forEach (<anonymous>)\n    at SendMsg._handle (C:\\Users\\Administrator\\Desktop\\NapCat\\napcat.cjs:21726:16898)\n    at async SendMsg.websocketHandle (C:\\Users\\Administrator\\Desktop\\NapCat\\napcat.cjs:21718:8212)\n    at async ReverseWebsocket.onmessage (C:\\Users\\Administrator\\Desktop\\NapCat\\napcat.cjs:22353:6179)\n    at async WebSocket.<anonymous> (C:\\Users\\Administrator\\Desktop\\NapCat\\napcat.cjs:22353:9567)", echo='256')

[BUG] 发送临时消息超时

系统版本

1

QQNT 版本

1

NapCat 版本

1

OneBot 客户端

1

发生了什么?

在网页(http方式)上用send_msg发送临时消息返回发送超时。

如何复现

发送/send_msg?message_type=private&user_id=xxx&message=hello&group_id=xxx

期望的结果?

希望能正常发送,并且希望临时消息地上报中加入类似gocqhttp的temp_source的条目来获得临时消息的group_id。

NapCat 运行日志

No response

OneBot 客户端运行日志

No response

[BUG] 真寻漂流瓶插件造成的napcat异常

系统版本

ubuntu22.04 server

QQNT 版本

使用napcat-docker部署,默认未更改

NapCat 版本

4.15号为止的版本(docker去哪里找版本号)

OneBot 客户端

真寻bot

发生了什么?

漂流瓶插件项目地址 https://github.com/molanp/nonebot_zhenxun_plugin_bottle
当使用捡漂流瓶命令时,真寻bot日志报告ws断开连接,手机qq显示Linux客户端离线,仅5G在线。napcat容器日志见下方

如何复现

使用指令 扔漂流瓶+图片
然后再捡漂流瓶 触发
重复两次现象一致

期望的结果?

正常发送图片消息。
如果发送错误在日志打印错误信息。

NapCat 运行日志

235,1781,Read map line: 7ffd9ba5d000-7ffd9ba7e000 rw-p 00000000 00:00 0                          [stack]

 235,1782,Read map line: 7ffd9bb3c000-7ffd9bb40000 r--p 00000000 00:00 0                          [vvar]

 235,1783,Read map line: 7ffd9bb40000-7ffd9bb42000 r-xp 00000000 00:00 0                          [vdso]

 235,1784,Read map line: ffffffffff600000-ffffffffff601000 --xp 00000000 00:00 0                  [vsyscall]

[BuglyService.cpp][handleSignal][382]Stack is succesfully dumped by libUnwind.
[BuglyService.cpp][handleSignal][384]Native stack:
$$00    pc 00000000000969fc    /usr/lib/x86_64-linux-gnu/libc.so.6 (pthread_kill+300) [x86_64::71a3399de893d2af81d6a30c62646e1e]
$$01    pc 0000000000042476    /usr/lib/x86_64-linux-gnu/libc.so.6 (raise+22) [x86_64::71a3399de893d2af81d6a30c62646e1e]
$$02    pc 00000000000287f3    /usr/lib/x86_64-linux-gnu/libc.so.6 (abort+211) [x86_64::71a3399de893d2af81d6a30c62646e1e]
$$03    pc 0000000009c947b2    /opt/QQ/qq [x86_64::418b5e6470d9b4ead85fd19f1a6b7c0a]
$$04    pc 0000000009c94896    /opt/QQ/qq [x86_64::418b5e6470d9b4ead85fd19f1a6b7c0a]
$$05    pc 000000000387360c    /opt/QQ/qq [x86_64::418b5e6470d9b4ead85fd19f1a6b7c0a]
$$06    pc 0000000002465e7f    /opt/QQ/resources/app/wrapper.node [x86_64::de618b7bec5291db0000000000000000]
$$07    pc 000000000227d1f3    /opt/QQ/resources/app/wrapper.node [x86_64::de618b7bec5291db0000000000000000]
$$08    pc 00000000020d2140    /opt/QQ/qq [x86_64::418b5e6470d9b4ead85fd19f1a6b7c0a]
$$09    pc 00000000020d0224    /opt/QQ/qq [x86_64::418b5e6470d9b4ead85fd19f1a6b7c0a]
$$10    pc 00000000021e1607    /opt/QQ/qq [x86_64::418b5e6470d9b4ead85fd19f1a6b7c0a]
$$11    pc 00000000020d0d8f    /opt/QQ/qq [x86_64::418b5e6470d9b4ead85fd19f1a6b7c0a]
$$12    pc 000000000225668d    /opt/QQ/qq [x86_64::418b5e6470d9b4ead85fd19f1a6b7c0a]
$$13    pc 00000000020d0224    /opt/QQ/qq [x86_64::418b5e6470d9b4ead85fd19f1a6b7c0a]
$$14    pc 00000000020d0224    /opt/QQ/qq [x86_64::418b5e6470d9b4ead85fd19f1a6b7c0a]
$$15    pc 000000000210fdc2    /opt/QQ/qq [x86_64::418b5e6470d9b4ead85fd19f1a6b7c0a]
$$16    pc 00000000021e372d    /opt/QQ/qq [x86_64::418b5e6470d9b4ead85fd19f1a6b7c0a]
$$17    pc 00000000020fd4be    /opt/QQ/qq [x86_64::418b5e6470d9b4ead85fd19f1a6b7c0a]
$$18    pc 00000000020cdd07    /opt/QQ/qq [x86_64::418b5e6470d9b4ead85fd19f1a6b7c0a]
$$19    pc 0000000003997f4e    /opt/QQ/qq [x86_64::418b5e6470d9b4ead85fd19f1a6b7c0a]
$$20    pc 0000000003998d9a    /opt/QQ/qq [x86_64::418b5e6470d9b4ead85fd19f1a6b7c0a]
$$21    pc 0000000003998f09    /opt/QQ/qq [x86_64::418b5e6470d9b4ead85fd19f1a6b7c0a]
$$22    pc 00000000039cac5d    /opt/QQ/qq [x86_64::418b5e6470d9b4ead85fd19f1a6b7c0a]
$$23    pc 00000000020d2140    /opt/QQ/qq [x86_64::418b5e6470d9b4ead85fd19f1a6b7c0a]
$$24    pc 00005606da6903fe    <unknown>
$$25    pc 00000000020cdddc    /opt/QQ/qq [x86_64::418b5e6470d9b4ead85fd19f1a6b7c0a]
$$26    pc 00000000020cdb07    /opt/QQ/qq [x86_64::418b5e6470d9b4ead85fd19f1a6b7c0a]
$$27    pc 000000000399803c    /opt/QQ/qq [x86_64::418b5e6470d9b4ead85fd19f1a6b7c0a]
$$28    pc 0000000003997d5b    /opt/QQ/qq (_ZN2v88internal9Execution4CallEPNS0_7IsolateENS0_6HandleINS0_6ObjectEEES6_iPS6_+155) [x86_64::418b5e6470d9b4ead85fd19f1a6b7c0a]
$$29    pc 000000000388c5d9    /opt/QQ/qq (_ZN2v88Function4CallENS_5LocalINS_7ContextEEENS1_INS_5ValueEEEiPS5_+841) [x86_64::418b5e6470d9b4ead85fd19f1a6b7c0a]
$$30    pc 0000000009bd9871    /opt/QQ/qq [x86_64::418b5e6470d9b4ead85fd19f1a6b7c0a]
$$31    pc 0000000009bd9a12    /opt/QQ/qq [x86_64::418b5e6470d9b4ead85fd19f1a6b7c0a]
$$32    pc 0000000009beeea0    /opt/QQ/qq [x86_64::418b5e6470d9b4ead85fd19f1a6b7c0a]
$$33    pc 0000000009d7b0d7    /opt/QQ/qq [x86_64::418b5e6470d9b4ead85fd19f1a6b7c0a]
$$34    pc 0000000009d7cfc7    /opt/QQ/qq [x86_64::418b5e6470d9b4ead85fd19f1a6b7c0a]
$$35    pc 0000000009d81db6    /opt/QQ/qq [x86_64::418b5e6470d9b4ead85fd19f1a6b7c0a]
$$36    pc 0000000009d8287c    /opt/QQ/qq [x86_64::418b5e6470d9b4ead85fd19f1a6b7c0a]
$$37    pc 000000000248baf4    /opt/QQ/qq [x86_64::418b5e6470d9b4ead85fd19f1a6b7c0a]
$$38    pc 0000000002490daa    /opt/QQ/qq [x86_64::418b5e6470d9b4ead85fd19f1a6b7c0a]

[BuglyService.cpp][handleSignal][386]Record map file of thread: 11
[BuglyService.cpp][handleSignal][396]Dumping of native stack finished.
 235,0001,Record EupInfo
 235,0002,EupInfo has been recorded.
 235,0003,Record native key-value list.
 235,0004,Native key-value list has been recorded.
 235,0005,Record native log.
 235,0000,Native log has not been initiated.
 235,0006,Native log has been recorded.
[BuglyService.cpp][clearEupInfo][283]Clear eupInfo object.
 235,0005,Try to unlock file: /root/.config/QQ/crash_files//../files/native_record_lock
 235,0006,Successfully unlock file: /root/.config/QQ/crash_files//../files/native_record_lock
[BuglyService.cpp][handleSignal][441]Restored signal handlers.
2024-04-16 02:22:42,432 INFO reaped unknown pid 8 (exit status 1)

OneBot 客户端运行日志

04-16 10:29:25 [INFO] nonebot | Matcher <Matcher from basic_plugins.chat_history.chat_message, type=message, priority=1, temp=False> running complete
{'time': 1713234564, 'self_id': --------, 'post_type': 'message', 'sub_type': 'normal', 'user_id': ---------, 'message_type': 'group', 'message_id': 2644, 'message': [{'type': 'text', 'data': {'text': 'pick'}}], 'original_message': [{'type': 'text', 'data': {'text': 'pick'}}], 'raw_message': 'pick', 'font': 14, 'sender': {'user_id': ----------, 'nickname': '---', 'sex': None, 'age': None, 'card': 'ForE(ᗜ ˰ ᗜ)', 'area': None, 'level': None, 'role': 'admin', 'title': None}, 'to_me': False, 'reply': None, 'group_id': --------, 'anonymous': None, 'message_format': 'array', 'real_id': 2644}
04-16 10:29:25 [INFO] nonebot | Matcher <Matcher from my_plugins.intercept_withdraw, type=message, priority=1, temp=False> running complete
04-16 10:29:25 [INFO] nonebot | Event will be handled by <Matcher from my_plugins.nonebot_zhenxun_plugin_bottle, type=message, priority=5, temp=False>
04-16 10:29:25 [WARNING] nonebot | OneBot V11 | WebSocket for Bot ------- closed by peer
04-16 10:29:25 [INFO] websockets | connection closed
04-16 10:29:42 [INFO] uvicorn | ('172.17.0.5', 53740) - "WebSocket /onebot/v11/ws" [accepted]
04-16 10:29:42 [INFO] nonebot | OneBot V11 | Bot -------- connected
04-16 10:29:42 [INFO] websockets | connection open
04-16 10:29:55 [INFO] nonebot | Matcher <Matcher from my_plugins.nonebot_zhenxun_plugin_bottle, type=message, priority=5, temp=False> running complete
04-16 10:29:55 [ERROR] nonebot | Running matcher <Matcher from my_plugins.nonebot_zhenxun_plugin_bottle, type=message, priority=5, temp=False> failed.
Traceback (most recent call last):
  File "/home/zhenxun_bot/bot.py", line 22, in <module>
    nonebot.run()
  File "/usr/local/lib/python3.9/site-packages/nonebot/__init__.py", line 261, in run
    get_driver().run(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/nonebot/drivers/fastapi.py", line 170, in run
    uvicorn.run(
  File "/usr/local/lib/python3.9/site-packages/uvicorn/main.py", line 576, in run
    server.run()
  File "/usr/local/lib/python3.9/site-packages/uvicorn/server.py", line 60, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/local/lib/python3.9/site-packages/nonebot/message.py", line 146, in _check_matcher
    await _run_matcher(Matcher, bot, event, state, stack, dependency_cache)
> File "/usr/local/lib/python3.9/site-packages/nonebot/message.py", line 196, in _run_matcher
    await matcher.run(bot, event, state, stack, dependency_cache)
  File "/usr/local/lib/python3.9/site-packages/nonebot/internal/matcher.py", line 672, in run
    await self.simple_run(bot, event, state, stack, dependency_cache)
  File "/usr/local/lib/python3.9/site-packages/nonebot/internal/matcher.py", line 639, in simple_run
    await handler(
  File "/usr/local/lib/python3.9/site-packages/nonebot/dependencies/__init__.py", line 92, in __call__
    return await self.call(**values)
  File "/home/zhenxun_bot/my_plugins/nonebot_zhenxun_plugin_bottle/__init__.py", line 114, in _
    await bot.send_group_forward_msg(group_id=event.group_id, messages=msg_list)
  File "/usr/local/lib/python3.9/site-packages/nonebot/internal/adapter/bot.py", line 117, in call_api
    raise exception
  File "/usr/local/lib/python3.9/site-packages/nonebot/internal/adapter/bot.py", line 94, in call_api
    result = await self.adapter._call_api(self, api, **data)
  File "/usr/local/lib/python3.9/site-packages/nonebot/adapters/onebot/v11/adapter.py", line 136, in _call_api
    raise NetworkError(f"WebSocket call api {api} timeout") from None
nonebot.adapters.onebot.v11.exception.NetworkError: <NetWorkError message=WebSocket call api send_group_forward_msg timeout>

04-16 10:29:42 [INFO] nonebot | OneBot V11 | Bot -------- connected 这里的重连是我重启了napcat容器

[BUG] 复读时会出现undefined

系统版本

CentOS7

QQNT 版本

9.9.9-23361

NapCat 版本

1.4.1

OneBot 客户端

top.mrxiaom:overflow-core:2.16.0-ef9584a-SNAPSHOT

发生了什么?

使用NapCat(下图中001用户)执行复读时会出现undefined;
使用LLOneBot(下图中002用户)则不会出现(Overflow版本均不变)
image

如何复现

在PluginMain.kt中输出

eventChannel.subscribeAlways<GroupMessageEvent> {
  group.sendMessage("sender: ${sender}; this msg: ${message}")
  group.sendMessage(message)
  logger.warning("this msg: ${message}")
}

期望的结果?

复读内容应该没有undefined,结果应与上图中002用户行为一致

NapCat 运行日志

2024-05-29 15:33:13 V/Bot.xxxxxxxxx: [XXXXXX(xxxxxxxxx)] XXXXXX(xxxxxxxxx) -> aaarte
2024-05-29 15:33:13 V/Bot.xxxxxxxxx: Group(xxxxxxxxx) <- sender: NormalMember(xxxxxxxxx); this msg: [mirai:source:ids=[-2147483547], internalIds=[-2147483547], from group xxxxxxxxx to xxxxxxxxx at 1716967]aaarte
2024-05-29 15:33:13 V/Bot.xxxxxxxxx: Group(xxxxxxxxx) <- [mirai:source:ids=[-2147483547], internalIds=[-2147483547], from group xxxxxxxxx to xxxxxxxxx at 1716967]aaarte
2024-05-29 15:33:13 W/Group Management: this msg: [mirai:source:ids=[-2147483547], internalIds=[-2147483547], from group xxxxxxxxx to xxxxxxxxx at 1716967]aaarte

OneBot 客户端运行日志

2024-05-29 15:33:12 D/Onebot: Client received <-- {"self_id":xxxxxxxxx,"user_id":xxxxxxxxx,"time":1716967990,"message_id":-2147483547,"message_seq":-2147483547,"real_id":-2147483547,"message_type":"group","sender":{"user_id":xxxxxxxxx,"nickname":"XXXXXX","card":"XXXXXX","role":"owner"},"raw_message":"aaarte","font":14,"sub_type":"normal","message":[{"data":{"text":"aaarte"},"type":"text"}],"message_format":"array","post_type":"message","group_id":xxxxxxxxx}
2024-05-29 15:33:12 D/Onebot: Send to server --> {"action":"get_group_member_list","params":{"group_id":xxxxxxxxx},"echo":6}
2024-05-29 15:33:13 D/Onebot: Client received <-- {"status":"ok","retcode":0,"data":[],"message":"","wording":"","echo":6}
2024-05-29 15:33:13 D/Onebot: Send to server --> {"action":"send_group_msg","params":{"group_id":xxxxxxxxx,"message":[{"type":"text","data":{"text":"sender: NormalMember(xxxxxxxxx); this msg: [mirai:source:ids=[-2147483547], internalIds=[-2147483547], from group xxxxxxxxx to xxxxxxxxx at 1716967]aaarte"}}],"auto_escape":false},"echo":7}
2024-05-29 15:33:13 D/Onebot: Client received <-- {"status":"ok","retcode":0,"data":{"message_id":-2147483545},"message":"","wording":"","echo":7}
2024-05-29 15:33:13 D/Onebot: Send to server --> {"action":"send_group_msg","params":{"group_id":xxxxxxxxx,"message":[{"type":"text","data":{}},{"type":"text","data":{"text":"aaarte"}}],"auto_escape":false},"echo":8}
2024-05-29 15:33:13 D/Onebot: Client received <-- {"status":"ok","retcode":0,"data":{"message_id":-2147483544},"message":"","wording":"","echo":8}

[OneBot接口]`get_group_member_info`接口返回的`level`字段类型问题

NapCat 版本

1.3.6

问题描述

按照OneBot11的接口定义,get_group_member_info返回的level应该是string类型,但是实际上NapCatQQ接口返回的是:

{
    "status": "ok",
    "retcode": 0,
    "data": {
        "group_id": 12345678,
        "user_id": 87654321,
        "nickname": "",
        "card": "xxxxxx",
        "sex": "unknown",
        "age": 0,
        "area": "",
        "level": 1, // number类型
        "qq_level": 0,
        "join_time": 1663751518,
        "last_sent_time": 1717128963,
        "title_expire_time": 0,
        "unfriendly": false,
        "card_changeable": true,
        "is_robot": false,
        "shut_up_timestamp": 0,
        "role": "member",
        "title": "",
        "qage": 13
    },
    "message": "",
    "wording": "",
    "echo": 93
}

附:OneBot-11的接口定义

https://github.com/botuniverse/onebot-11/blob/master/api/public.md

字段名 数据类型 说明
group_id number (int64) 群号
user_id number (int64) QQ 号
nickname string 昵称
card string 群名片/备注
sex string 性别,malefemaleunknown
age number (int32) 年龄
area string 地区
join_time number (int32) 加群时间戳
last_sent_time number (int32) 最后发言时间戳
level string 成员等级
role string 角色,owneradminmember
unfriendly boolean 是否不良记录成员
title string 专属头衔
title_expire_time number (int32) 专属头衔过期时间戳
card_changeable boolean 是否允许修改群名片

[BUG] QQ被冻结踢下线后 [API] get_status依然显示online: true

系统版本

Windows 10

QQNT 版本

9.9.9_240507

NapCat 版本

1.3.9

OneBot 客户端

没有

发生了什么?

QQ被冻结踢下线后 [API] get_status依然显示online: true

如何复现

暂无

期望的结果?

希望可以和llob一样可以正常显示离线

NapCat 运行日志

2024-05-26 07:01:51 [INFO] BOT(123456)
[KickedOffLine] [下线通知] 该账号因涉嫌业务违规操作被暂时冻结,请点击确定按钮后重新输入账号及密码了解详情。你也可以对账 号进行<TITLE="资金管理",URL="https://myun.tenpay.com/mqq/banneduser/index.shtml?_wv=1027">。

2024-05-26 07:01:53 [ERROR] BOT(123456)
发生错误 发送超时

OneBot 客户端运行日志

No response

[BUG]

系统版本

ubuntu 2204

QQNT 版本

9.9.7

NapCat 版本

1.5.0

OneBot 客户端

v11

发生了什么?

无法运行

如何复现

. napcat.sh

期望的结果?

. napcat.sh

NapCat 运行日志

. napcat.sh 
/opt/QQ/qq: error while loading shared libraries: libgtk-3.so.0: cannot open shared object file: No such file or directory

OneBot 客户端运行日志

No response

[BUG] 报错退出FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal

系统版本

Windows Server 2012 R2

QQNT 版本

9.9.9-22868

NapCat 版本

1.1.1

OneBot 客户端

sealdice1.4.5

发生了什么?

正常使用几天后,未知原因突发报错

如何复现

暂无稳定复现流程

期望的结果?

正常运行

NapCat 运行日志

正在记录消息到数据库 xxx
ws 消息上报  {
  self_id: xxx,
  user_id: xxx,
  time: 1714353029,
  message_id: 2545,
  real_id: 2545,
  message_type: 'group',
  sender: { user_id: xxx, nickname: 'xxx', card: '', role: 'admin' },
  raw_message: 'xxx',
  font: 14,
  sub_type: 'normal',
  message: [ { data: [Object], type: 'text' } ],
  message_format: 'array',
  post_type: 'message',
  group_id: xxx
}
FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal
 1: 00007FF6B216D5A6 node::SetTracingController+75334
 2: 00007FF6B216D6E4 node::OnFatalError+276
 3: 00007FF6B5322CE2 v8::Function::NewInstance+1042
 4: 00007FFAF8444737
 5: 00007FFAF7D5517F
 6: 00007FF6B21F0F70 uv_run+1888
 7: 00007FF6B21F0A0B uv_run+507
 8: 00007FF6B21EB036 node::SpinEventLoop+454
 9: 00007FF6B01A0FA7 node::AsyncResource::CallbackScope::~CallbackScope+2167
10: 00007FF6B019D17F std::__Cr::vector<v8::CpuProfileDeoptInfo,std::__Cr::alloca
tor<v8::CpuProfileDeoptInfo> >::vector<v8::CpuProfileDeoptInfo,std::__Cr::alloca
tor<v8::CpuProfileDeoptInfo> >+62735
11: 00007FF6B47F1C12 Cr_z_adler32+4756226
12: 00007FFB0D8913F2 BaseThreadInitThunk+34
13: 00007FFB0D9E5504 RtlUserThreadStart+52
Press any key to continue . . .

OneBot 客户端运行日志

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.