Closed Chen-Luan closed 1 year ago
问题
昨天还好好地,今天改了一下密码回来想登录,遇到报错 Websocket connection closed Websocket reconnecting in 5s...
文件
\Mirai\mirai_luo_plugins\main.py
saya = create(Saya) app = Ariadne( connection=config( 2679222099, "ServiceVerifyKey", ), ) app.launch_blocking()
\Mirai\config\net.mamoe.mirai-api-http\setting.yml
adapters: - http - ws debug: false enableVerify: true verifyKey: ServiceVerifyKey singleMode: false cacheSize: 4096 adapterSettings: http: host: localhost port: 8080 cors: ["*"] ws: host: localhost port: 8080 reservedSyncId: -1
备注:社区文档中好像是 cors: [*] 也报错
cors: [*]
日志/截图
PS E:\Mirai\mirai_luo_plugins> & 'C:\Users\*****\AppData\Local\Programs\Python\Python311\python.exe' 'c:\Users\*****\.vscode\extensions\ms-python.python-2023.6.0\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher' '61900' '--' 'E:\Mirai\mirai_luo_plugins\main.py' 2023-04-11 16:00:55.674 | DEBUG | graia.saya:require:109 - require modules.debug 2023-04-11 16:00:55.679 | INFO | graia.saya:require:134 - module loading finished: modules.debug 2023-04-11 16:00:55.679 | DEBUG | graia.saya:require:109 - require modules.input_message 2023-04-11 16:00:55.685 | INFO | graia.saya:require:134 - module loading finished: modules.input_message 2023-04-11 16:00:55.687 | INFO | launart.manager:launch_blocking:479 - Starting launart main task... 2023-04-11 16:00:55.689 | INFO | launart.manager:launch:331 - Launching 6 components as async task... 2023-04-11 16:00:55.815 | INFO | graia.ariadne.service:base_telemetry:108 - _ _ _ / \ _ __(_) __ _ __| |_ __ ___ / _ \ | '__| |/ _` |/ _` | '_ \ / _ \ / ___ \| | | | (_| | (_| | | | | __/ /_/ \_\_| |_|\__,_|\__,_|_| |_|\___| graia-amnesia: 0.7.1 graia-ariadne: 0.11.0 graia-broadcast: 0.19.1 graia-saya: 0.0.17 graia-scheduler: 0.1.4 launart: 0.6.3 statv: 0.3.2 2023-04-11 16:00:55.825 | SUCCESS | launart.manager:launch:384 - Layer #1:[http.client/aiohttp, cache.client/memcache, scheduler.service] preparation completed. 2023-04-11 16:00:55.826 | SUCCESS | launart.manager:launch:384 - Layer #3:[elizabeth.service] preparation completed. 2023-04-11 16:00:55.827 | INFO | launart.manager:launch:389 - All components prepared, start blocking phase. 2023-04-11 16:00:57.895 | INFO | graia.ariadne.connection.ws:_:90 - Websocket connection closed 2023-04-11 16:00:57.898 | WARNING | graia.ariadne.connection.ws:_:76 - Websocket reconnecting in 5s... 2023-04-11 16:01:02.914 | WARNING | graia.ariadne.connection.ws:_:78 - Websocket reconnecting... 2023-04-11 16:01:02.928 | INFO | graia.ariadne.connection.ws:_:90 - Websocket connection closed 2023-04-11 16:01:02.931 | WARNING | graia.ariadne.connection.ws:_:76 - Websocket reconnecting in 5s...
草,我改autologin的时候没保存,自动登录炸了,那没事了
问题
昨天还好好地,今天改了一下密码回来想登录,遇到报错 Websocket connection closed Websocket reconnecting in 5s...
文件
\Mirai\mirai_luo_plugins\main.py
\Mirai\config\net.mamoe.mirai-api-http\setting.yml
备注:社区文档中好像是
cors: [*]
也报错日志/截图