CCYellowStar2 / nonebot-plugin-asmr

一个简易的能在群里听音声的插件
GNU General Public License v3.0
4 stars 0 forks source link

这是咋回事 #3

Open YRRLYB opened 1 week ago

YRRLYB commented 1 week ago

06-30 11:41:45 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_asmr, lineno=40) 06-30 11:41:45 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_asmr, lineno=40) running complete 06-30 11:41:45 [ERROR] nonebot | Running Matcher(type='message', module=nonebot_plugin_asmr, lineno=40) failed. Traceback (most recent call last): File "C:\Users\26956\AppData\Local\Programs\Python\Python310\lib\asyncio\windows_events.py", line 494, in finish_recv return ov.getresult() OSError: [WinError 64] 指定的网络名不再可用。

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "D:\bot\llonebot\nonebot\budingbot.venv\lib\site-packages\aiohttp\connector.py", line 1025, in _wrap_create_connection return await self._loop.create_connection(*args, *kwargs) File "C:\Users\26956\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1103, in create_connection transport, protocol = await self._create_connection_transport( File "C:\Users\26956\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1133, in _create_connection_transport await waiter File "C:\Users\26956\AppData\Local\Programs\Python\Python310\lib\asyncio\proactor_events.py", line 286, in _loop_reading length = fut.result() File "C:\Users\26956\AppData\Local\Programs\Python\Python310\lib\asyncio\windows_events.py", line 826, in _poll value = callback(transferred, key, ov) File "C:\Users\26956\AppData\Local\Programs\Python\Python310\lib\asyncio\windows_events.py", line 498, in finish_recv raise ConnectionResetError(exc.args) ConnectionResetError: [WinError 64] 指定的网络名不再可用。

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "", line 15, in File "D:\bot\llonebot\nonebot\budingbot.venv\lib\site-packages\nonebot__init__.py", line 335, in run get_driver().run(*args, *kwargs) File "D:\bot\llonebot\nonebot\budingbot.venv\lib\site-packages\nonebot\drivers\fastapi.py", line 186, in run uvicorn.run( File "D:\bot\llonebot\nonebot\budingbot.venv\lib\site-packages\uvicorn\main.py", line 577, in run server.run() File "D:\bot\llonebot\nonebot\budingbot.venv\lib\site-packages\uvicorn\server.py", line 65, in run return asyncio.run(self.serve(sockets=sockets)) File "C:\Users\26956\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run return loop.run_until_complete(main) File "C:\Users\26956\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 636, in run_until_complete self.run_forever() File "C:\Users\26956\AppData\Local\Programs\Python\Python310\lib\asyncio\windows_events.py", line 321, in run_forever super().run_forever() File "C:\Users\26956\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 603, in run_forever self._run_once() File "C:\Users\26956\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1909, in _run_once handle._run() File "C:\Users\26956\AppData\Local\Programs\Python\Python310\lib\asyncio\events.py", line 80, in _run self._context.run(self._callback, self._args) File "D:\bot\llonebot\nonebot\budingbot.venv\lib\site-packages\nonebot\message.py", line 476, in check_and_run_matcher await _run_matcher(

File "D:\bot\llonebot\nonebot\budingbot.venv\lib\site-packages\nonebot\message.py", line 428, in _run_matcher await matcher.run(bot, event, state, stack, dependency_cache) File "D:\bot\llonebot\nonebot\budingbot.venv\lib\site-packages\nonebot\internal\matcher\matcher.py", line 850, in run await self.simple_run(bot, event, state, stack, dependency_cache) File "D:\bot\llonebot\nonebot\budingbot.venv\lib\site-packages\nonebot\internal\matcher\matcher.py", line 825, in simple_run await handler( File "D:\bot\llonebot\nonebot\budingbot.venv\lib\site-packages\nonebot\dependencies__init.py", line 94, in call return await cast(Callable[..., Awaitable[R]], self.call)(**values) File "D:\bot\llonebot\nonebot\budingbot.venv\lib\site-packages\nonebot_plugin_asmr\init__.py", line 65, in _search res = await session.get(f"https://api.asmr-200.com/api/search/{keyword}?order=dl_count&sort=desc&page={y}&subtitle=0&includeTranslationWorks=true", headers=headers, timeout=10) File "D:\bot\llonebot\nonebot\budingbot.venv\lib\site-packages\aiohttp\client.py", line 581, in _request conn = await self._connector.connect( File "D:\bot\llonebot\nonebot\budingbot.venv\lib\site-packages\aiohttp\connector.py", line 544, in connect proto = await self._create_connection(req, traces, timeout) File "D:\bot\llonebot\nonebot\budingbot.venv\lib\site-packages\aiohttp\connector.py", line 944, in _createconnection , proto = await self._create_direct_connection(req, traces, timeout) File "D:\bot\llonebot\nonebot\budingbot.venv\lib\site-packages\aiohttp\connector.py", line 1257, in _create_direct_connection raise last_exc File "D:\bot\llonebot\nonebot\budingbot.venv\lib\site-packages\aiohttp\connector.py", line 1226, in _create_direct_connection transp, proto = await self._wrap_create_connection( File "D:\bot\llonebot\nonebot\budingbot.venv\lib\site-packages\aiohttp\connector.py", line 1033, in _wrap_create_connection raise client_error(req.connection_key, exc) from exc aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.asmr-200.com:443 ssl:default [指定的网络名不再可用。]

CCYellowStar2 commented 4 days ago

可能网络环境问题