lss233 / chatgpt-mirai-qq-bot

🚀 一键部署!真正的 AI 聊天机器人!支持ChatGPT、文心一言、讯飞星火、Bing、Bard、ChatGLM、POE,多账号,人设调教,虚拟女仆、图片渲染、语音发送 | 支持 QQ、Telegram、Discord、微信 等平台
GNU Affero General Public License v3.0
13.34k stars 1.56k forks source link

ERROR | graia.amnesia.transport.rider:trigger_callbacks:37 - 'NoneType' object has no attribute 'get' #14

Closed zinc3938 closed 1 year ago

zinc3938 commented 1 year ago

2022-12-09 16:58:31.983 | ERROR | graia.amnesia.transport.rider:trigger_callbacks:37 - 'NoneType' object has no attribute 'get' Traceback (most recent call last):

File "C:\Python39\lib\site-packages\graia\amnesia\transport\common\websocket\shortcut.py", line 20, in wrapper return await func(self, io, data) │ │ │ └ '{"_post_method":2,"meta_event_type":"lifecycle","post_type":"meta_event","self_id":2771689516,"subtype":"connect","time":16... │ │ └ <graia.amnesia.builtins.aiohttp.AiohttpClientWebsocketIO object at 0x000001DFF0702F40> │ └ <WebsocketClientConnection with 2 callbacks> └ <function WebsocketConnectionMixin. at 0x000001DFCAF88790>

File "C:\Python39\lib\site-packages\graia\ariadne\connection\ws.py", line 55, in _ data = validate_response(data, raising=False) │ └ None └ <function validate_response at 0x000001DFCAE55EE0>

File "C:\Python39\lib\site-packages\graia\ariadne\connection\util.py", line 57, in validate_response return data.get("data", data) │ └ None └ None

lss233 commented 1 year ago

检查一下配置里面的 http_url 和 ws_url 所填的地址是不是你 mirai-http-api 配置的地址。 以及所用的软件版本是多少?

BlueGlassBlock commented 1 year ago

合理怀疑你使用了 go-cqhttp 而不是 mirai-api-http。二者通信协议完全不同且不能混用。