Welcome to aioaria2 Discussions! #3
synodriver
started this conversation in
General
Replies: 2 comments 8 replies
-
Hello, thanks for this module, it's me again. can you catch exception in here to close the 2021-04-18T20:19:56.413920+00:00 app[caligo.1]: ERROR | asyncio | Task exception was never retrieved
2021-04-18T20:19:56.413933+00:00 app[caligo.1]: future: <Task finished name='Task-171' coro=<Aria2.on_started() done, defined at /home/caligo/caligo/modules/aria2.py:399> exception=ClientConnectorError(ConnectionKey(host='localhost', port=8443, is_ssl=True, ssl=None, proxy=None, proxy_auth=None, proxy_headers_hash=None), ConnectionRefusedError(111, 'Connection refused'))>
2021-04-18T20:19:56.413934+00:00 app[caligo.1]: Traceback (most recent call last):
2021-04-18T20:19:56.413935+00:00 app[caligo.1]: File "/opt/venv/lib/python3.9/site-packages/aiohttp/connector.py", line 969, in _wrap_create_connection
2021-04-18T20:19:56.413935+00:00 app[caligo.1]: return await self._loop.create_connection(*args, **kwargs) # type: ignore # noqa
2021-04-18T20:19:56.413936+00:00 app[caligo.1]: File "uvloop/loop.pyx", line 2017, in create_connection
2021-04-18T20:19:56.413937+00:00 app[caligo.1]: File "uvloop/loop.pyx", line 1994, in uvloop.loop.Loop.create_connection
2021-04-18T20:19:56.413937+00:00 app[caligo.1]: ConnectionRefusedError: [Errno 111] Connection refused
2021-04-18T20:19:56.413938+00:00 app[caligo.1]:
2021-04-18T20:19:56.413938+00:00 app[caligo.1]: The above exception was the direct cause of the following exception:
2021-04-18T20:19:56.413939+00:00 app[caligo.1]:
2021-04-18T20:19:56.413939+00:00 app[caligo.1]: Traceback (most recent call last):
2021-04-18T20:19:56.413939+00:00 app[caligo.1]: File "/home/caligo/caligo/modules/aria2.py", line 401, in on_started
2021-04-18T20:19:56.413939+00:00 app[caligo.1]: self.client = await Aria2WebSocket.init(self)
2021-04-18T20:19:56.413940+00:00 app[caligo.1]: File "/home/caligo/caligo/modules/aria2.py", line 73, in init
2021-04-18T20:19:56.413940+00:00 app[caligo.1]: client = await aioaria2.Aria2WebsocketTrigger.new(url=protocol)
2021-04-18T20:19:56.413940+00:00 app[caligo.1]: File "/opt/venv/lib/python3.9/site-packages/aioaria2/client.py", line 791, in new
2021-04-18T20:19:56.413941+00:00 app[caligo.1]: self.client_session: aiohttp.ClientWebSocketResponse = await self._client_session.ws_connect(self.url,
2021-04-18T20:19:56.413941+00:00 app[caligo.1]: File "/opt/venv/lib/python3.9/site-packages/aiohttp/client.py", line 754, in _ws_connect
2021-04-18T20:19:56.413942+00:00 app[caligo.1]: resp = await self.request(
2021-04-18T20:19:56.413942+00:00 app[caligo.1]: File "/opt/venv/lib/python3.9/site-packages/aiohttp/client.py", line 520, in _request
2021-04-18T20:19:56.413942+00:00 app[caligo.1]: conn = await self._connector.connect(
2021-04-18T20:19:56.413942+00:00 app[caligo.1]: File "/opt/venv/lib/python3.9/site-packages/aiohttp/connector.py", line 535, in connect
2021-04-18T20:19:56.413942+00:00 app[caligo.1]: proto = await self._create_connection(req, traces, timeout)
2021-04-18T20:19:56.413943+00:00 app[caligo.1]: File "/opt/venv/lib/python3.9/site-packages/aiohttp/connector.py", line 892, in _create_connection
2021-04-18T20:19:56.413943+00:00 app[caligo.1]: _, proto = await self._create_direct_connection(req, traces, timeout)
2021-04-18T20:19:56.413943+00:00 app[caligo.1]: File "/opt/venv/lib/python3.9/site-packages/aiohttp/connector.py", line 1051, in _create_direct_connection
2021-04-18T20:19:56.413943+00:00 app[caligo.1]: raise last_exc
2021-04-18T20:19:56.413944+00:00 app[caligo.1]: File "/opt/venv/lib/python3.9/site-packages/aiohttp/connector.py", line 1020, in _create_direct_connection
2021-04-18T20:19:56.413944+00:00 app[caligo.1]: transp, proto = await self._wrap_create_connection(
2021-04-18T20:19:56.413944+00:00 app[caligo.1]: File "/opt/venv/lib/python3.9/site-packages/aiohttp/connector.py", line 975, in _wrap_create_connection
2021-04-18T20:19:56.413944+00:00 app[caligo.1]: raise client_error(req.connection_key, exc) from exc
2021-04-18T20:19:56.413945+00:00 app[caligo.1]: aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host localhost:8443 ssl:default [Connection refused]
2021-04-18T20:19:56.414049+00:00 app[caligo.1]: INFO | Bot | Idling...
2021-04-18T20:22:28.367361+00:00 app[caligo.1]: ERROR | asyncio | Unclosed client session
2021-04-18T20:22:28.367372+00:00 app[caligo.1]: client_session: <aiohttp.client.ClientSession object at 0x7fce64b651f0> I have a work arounds for that connection refuse error using 2021-04-18T20:22:46.785476+00:00 app[caligo.1]: INFO | System | Bot restarted in 5 sec
2021-04-18T20:22:46.999384+00:00 app[caligo.1]: INFO | Bot | Bot is ready
2021-04-18T20:22:47.653013+00:00 app[caligo.1]: ERROR | asyncio | Unclosed client session
2021-04-18T20:22:47.653022+00:00 app[caligo.1]: client_session: <aiohttp.client.ClientSession object at 0x7f5847a53a30>
2021-04-18T20:22:47.653608+00:00 app[caligo.1]: INFO | Bot | Idling... |
Beta Was this translation helpful? Give feedback.
8 replies
-
Also I have readme.md translated. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
👋 Welcome!
We’re using Discussions as a place to connect with other members of our community. We hope that you:
build together 💪.
To get started, comment below with an introduction of yourself and tell us about what you do with this community.
Beta Was this translation helpful? Give feedback.
All reactions