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 Report] 点歌插件失效 #434

Open
Garrise opened this issue Oct 8, 2023 · 0 comments
Open

[Bug Report] 点歌插件失效 #434

Garrise opened this issue Oct 8, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Garrise
Copy link

Garrise commented Oct 8, 2023

问题

点歌插件无法使用

如何复现

  1. Ubuntu 22.04, Miniconda
  2. 在qq群中输入 点歌 <歌名>

预期行为

No response

使用环境

- 系统: Ubuntu 22.04
- mirai 版本: 2.15.0-all
- mirai-api-http 版本: 2.9.1
- Python 版本: 3.10.0
- 源码版本: 
- 其他 Graia 库版本:
- 其他 有关 库版本:

日志/截图

`2023-10-08 13:38:43.331 | ERROR | graia.ariadne.util:loguru_exc_callback:76 - Exception:
Traceback (most recent call last):

File "/home/garrise/miniconda3/envs/sagiri/lib/python3.10/site-packages/aiohttp/connector.py", line 980, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs) # type: ignore[return-value] # noqa
│ │ │ │ └ {'ssl': <ssl.SSLContext object at 0x7f7dcf22e7c0>, 'family': <AddressFamily.AF_INET: 2>, 'proto': 6, 'flags
': <AddressInfo.AI...
│ │ │ └ (functools.partial(<class 'aiohttp.client_proto.ResponseHandler'>, loop=<_UnixSelectorEventLoop running=True closed=
False deb...
│ │ └ <function BaseEventLoop.create_connection at 0x7f7df4662dd0>
│ └ <_UnixSelectorEventLoop running=True closed=False debug=False>
└ <aiohttp.connector.TCPConnector object at 0x7f7dcee48880>
File "/home/garrise/miniconda3/envs/sagiri/lib/python3.10/asyncio/base_events.py", line 1080, in create_connection
transport, protocol = await self._create_connection_transport(
│ └ <function BaseEventLoop._create_connection_transport at 0x7f7df4662e60>
└ <_UnixSelectorEventLoop running=True closed=False debug=False>
File "/home/garrise/miniconda3/envs/sagiri/lib/python3.10/asyncio/base_events.py", line 1110, in _create_connection_transport
await waiter
└ <Future finished exception=ConnectionResetError(104, 'Connection reset by peer')>
File "/home/garrise/miniconda3/envs/sagiri/lib/python3.10/asyncio/selector_events.py", line 856, in _read_ready__data_received
data = self._sock.recv(self.max_size)
│ │ │ └ 262144
│ │ └ <_SelectorSocketTransport closed fd=6>
│ └ None
└ <_SelectorSocketTransport closed fd=6>

ConnectionResetError: [Errno 104] Connection reset by peer

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

Traceback (most recent call last):

File "/home/garrise/sagiri-bot/main.py", line 113, in
core.launch()
│ └ <staticmethod(<function Sagiri.launch at 0x7f7df0a251b0>)>
└ <core.Sagiri object at 0x7f7df0a29330>

File "/home/garrise/sagiri-bot/core/init.py", line 384, in launch
Ariadne.launch_blocking()
│ └ <classmethod(<function Ariadne.launch_blocking at 0x7f7df2bd1480>)>
└ <class 'graia.ariadne.app.Ariadne'>

File "/home/garrise/miniconda3/envs/sagiri/lib/python3.10/site-packages/graia/ariadne/app.py", line 313, in launch_blocking
cls.launch_manager.launch_blocking(loop=cls.service.loop, stop_signal=stop_signals)
│ │ │ │ │ │ └ (<Signals.SIGINT: 2>,)
│ │ │ │ │ └ <property object at 0x7f7df2bd94e0>
│ │ │ │ └ <graia.ariadne.service.ElizabethService object at 0x7f7df0a2b040>
│ │ │ └ <class 'graia.ariadne.app.Ariadne'>
│ │ └ <function Launart.launch_blocking at 0x7f7df41aee60>
│ └ <launart.manager.Launart object at 0x7f7df0a2b0a0>
└ <class 'graia.ariadne.app.Ariadne'>
File "/home/garrise/miniconda3/envs/sagiri/lib/python3.10/site-packages/launart/manager.py", line 494, in launch_blocking
loop.run_until_complete(launch_task)
│ │ └ <Task pending name='amnesia-launch' coro=<Launart.launch() running at /home/garrise/miniconda3/envs/sagiri/lib/python3.10/sit...
│ └ <function BaseEventLoop.run_until_complete at 0x7f7df4662050>
└ <_UnixSelectorEventLoop running=True closed=False debug=False>
File "/home/garrise/miniconda3/envs/sagiri/lib/python3.10/asyncio/base_events.py", line 628, in run_until_complete
self.run_forever()
│ └ <function BaseEventLoop.run_forever at 0x7f7df4661fc0>
└ <_UnixSelectorEventLoop running=True closed=False debug=False>
File "/home/garrise/miniconda3/envs/sagiri/lib/python3.10/asyncio/base_events.py", line 595, in run_forever
self._run_once()
│ └ <function BaseEventLoop._run_once at 0x7f7df4663ac0>
└ <_UnixSelectorEventLoop running=True closed=False debug=False>
File "/home/garrise/miniconda3/envs/sagiri/lib/python3.10/asyncio/base_events.py", line 1881, in _run_once
handle._run()
│ └ <function Handle._run at 0x7f7df45b70a0>
└ <Handle <TaskStepMethWrapper object at 0x7f7db2f6bee0>()>
File "/home/garrise/miniconda3/envs/sagiri/lib/python3.10/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
│ │ │ │ │ └ <member '_args' of 'Handle' objects>
│ │ │ │ └ <Handle <TaskStepMethWrapper object at 0x7f7db2f6bee0>()>
│ │ │ └ <member '_callback' of 'Handle' objects>
│ │ └ <Handle <TaskStepMethWrapper object at 0x7f7db2f6bee0>()>
│ └ <member '_context' of 'Handle' objects>
└ <Handle <TaskStepMethWrapper object at 0x7f7db2f6bee0>()>

File "/home/garrise/miniconda3/envs/sagiri/lib/python3.10/site-packages/graia/broadcast/init.py", line 191, in Executor
result = await run_always_await(target_callable, **parameter_compile_result)
│ │ └ {'app': <graia.ariadne.app.Ariadne object at 0x7f7df0a2b100>, 'group': Group(id=<群号>, name='<群名>', account_perm=<管...
│ └ <function music at 0x7f7ddfa67910>
File "/home/garrise/miniconda3/envs/sagiri/lib/python3.10/site-packages/graia/broadcast/utilles.py", line 34, in run_always_await
obj = await obj
└ <coroutine object music at 0x7f7db30a80b0>

File "/home/garrise/sagiri-bot/modules/self_contained/music/init.py", line 60, in music
element = await handlers[music_platform](keyword, send_type)
│ │ │ └ 'card'
│ │ └ MessageChain([Plain(text='lalala')])
│ └ 'wyy'
└ {'qq': None, 'wyy': <function wyy_handle at 0x7f7ddfa67400>}

File "/home/garrise/sagiri-bot/modules/self_contained/music/utils.py", line 26, in wyy_handle
async with session.get(
│ └ <function ClientSession.get at 0x7f7df2da7910>
└ <aiohttp.client.ClientSession object at 0x7f7dcee4b820>

File "/home/garrise/miniconda3/envs/sagiri/lib/python3.10/site-packages/aiohttp/client.py", line 1141, in aenter
self._resp = await self._coro
│ │ │ └ <member '_coro' of '_BaseRequestContextManager' objects>
│ │ └ <aiohttp.client._RequestContextManager object at 0x7f7dce7c8d90>
│ └ <member '_resp' of '_BaseRequestContextManager' objects>
└ <aiohttp.client._RequestContextManager object at 0x7f7dce7c8d90>
File "/home/garrise/miniconda3/envs/sagiri/lib/python3.10/site-packages/aiohttp/client.py", line 536, in _request
conn = await self._connector.connect(
│ └ None
└ <aiohttp.client.ClientSession object at 0x7f7dcee4b820>
File "/home/garrise/miniconda3/envs/sagiri/lib/python3.10/site-packages/aiohttp/connector.py", line 540, in connect
proto = await self._create_connection(req, traces, timeout)
│ │ │ │ └ ClientTimeout(total=300, connect=None, sock_read=None, sock_connect=None)
│ │ │ └ []
│ │ └ <aiohttp.client_reqrep.ClientRequest object at 0x7f7db2f6bdf0>
│ └ <function TCPConnector._create_connection at 0x7f7df2d5c1f0>
└ <aiohttp.connector.TCPConnector object at 0x7f7dcee48880>
File "/home/garrise/miniconda3/envs/sagiri/lib/python3.10/site-packages/aiohttp/connector.py", line 901, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
│ │ │ │ └ ClientTimeout(total=300, connect=None, sock_read=None, sock_connect=None)
│ │ │ └ []
│ │ └ <aiohttp.client_reqrep.ClientRequest object at 0x7f7db2f6bdf0>
│ └ <function TCPConnector._create_direct_connection at 0x7f7df2d5c820>
└ <aiohttp.connector.TCPConnector object at 0x7f7dcee48880>
File "/home/garrise/miniconda3/envs/sagiri/lib/python3.10/site-packages/aiohttp/connector.py", line 1206, in create_direct_connection
raise last_exc
└ ClientConnectorError(ConnectionKey(host='autumnfish.cn', port=443, is_ssl=True, ssl=None, proxy=None, proxy_auth=None, proxy
...
File "/home/garrise/miniconda3/envs/sagiri/lib/python3.10/site-packages/aiohttp/connector.py", line 1175, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
│ └ <function TCPConnector._wrap_create_connection at 0x7f7df2d5c4c0>
└ <aiohttp.connector.TCPConnector object at 0x7f7dcee48880>
File "/home/garrise/miniconda3/envs/sagiri/lib/python3.10/site-packages/aiohttp/connector.py", line 988, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
│ │ └ <property object at 0x7f7df2d12f20>
│ └ <aiohttp.client_reqrep.ClientRequest object at 0x7f7db2f6bdf0>
└ <class 'aiohttp.client_exceptions.ClientConnectorError'>

aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host autumnfish.cn:443 ssl:default [Connection reset by peer]`

@Garrise Garrise added the bug Something isn't working label Oct 8, 2023
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