Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[Bug]: 对接 Koishi 的 server-satori 时出现 Received unexpected payload while authenticating #38

Open
3 of 4 tasks
Nekoer opened this issue Jan 3, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Nekoer
Copy link

Nekoer commented Jan 3, 2025

确认项

  • 问题的标题明确
  • 我翻阅过其他的 issue 并且找不到类似的问题
  • 我已经阅读了相关文档 并仍然认为这是一个 Bug
  • 我已经尝试过在最新的代码中修复这个问题

操作系统

Windows

Python 版本

3.11.2

NoneBot 版本

2.4.1

适配器

0.13.1

协议端

@koishijs/plugin-server-satori 2.8.6

描述问题

用的koishi的adapter-dingtalk 2.4.2adapter-qq 4.8.6
与koishi server satori对接后,报错Received unexpected payload while authenticating

复现步骤

使用 Koishi 的 server-satori 插件开启协议端
对接后就出现“Received unexpected payload while authenticating”

期望的结果

能不报错,正常使用

截图或日志

01-03 16:28:34 [DEBUG] nonebot | Satori | WebSocket Connection to ws://localhost:5140/satori/v1/events established
01-03 16:28:34 [ERROR] nonebot | Satori | Received unexpected payload while authenticating: Payload(op=<Opcode.READY: 4>, body={'logins': [{'sn': 1, 'platform': 'qq', 'self_id': '123456', 'status': 1, 'hidden': False, 'features': ['message.create', 'message.delete', 'upload.create', 'login.get', 'user.channel.create'], 'user': {'id': '123456', 'name': '牧濑红莉栖-测试中', 'is_bot': True, 'avatar': 'http://thirdqq.qlogo.cn/g?b=oidb&k=123456&kti=123456&s=0&t=1719042594', 'username': '牧濑红莉栖-测试中', 'union_openid': '123456', 'union_user_account': '', 'share_url': 'https://qun.qq.com/qunpro/robot/qunshare?robot_uin=123456&robot_appid=123456&biz_type=0', 'welcome_msg': ''}, 'adapter': 'qq'}, {'sn': 2, 'platform': 'qqguild', 'self_id': '123456', 'status': 1, 'hidden': True, 'features': ['channel.get', 'channel.list', 'message.create', 'message.delete', 'message.get', 'reaction.create', 'reaction.delete', 'reaction.list', 'upload.create', 'guild.get', 'guild.list', 'guild.member.get', 'guild.member.list', 'guild.member.kick', 'guild.member.mute', 'login.get', 'user.get', 'user.channel.create'], 'user': {'id': '123456', 'name': '牧濑红莉栖-测试中', 'is_bot': True, 'avatar': 'http://thirdqq.qlogo.cn/g?b=oidb&k=123456&kti=123456&s=0&t=1719042594', 'username': '牧濑红莉栖-测试中', 'union_openid': '123456', 'union_user_account': '', 'share_url': 'https://qun.qq.com/qunpro/robot/qunshare?robot_uin=123456&robot_appid=123456&biz_type=0', 'welcome_msg': ''}, 'adapter': 'qqguild'}], 'proxy_urls': []})

Nonebot 配置项

ENVIRONMENT=dev
DRIVER=~aiohttp
SATORI_CLIENTS='
[
  {
    "host": "localhost",
    "port": "5140",
    "path": "/satori",
    "token": ""
  }
]
'
@Nekoer Nekoer added the bug Something isn't working label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant