Skip to content
This repository has been archived by the owner on Oct 24, 2018. It is now read-only.

Telegram downtime caused brige to hang #60

Open
mtippmann opened this issue Mar 29, 2018 · 0 comments
Open

Telegram downtime caused brige to hang #60

mtippmann opened this issue Mar 29, 2018 · 0 comments

Comments

@mtippmann
Copy link

It should recover graceful on network errors - after restarting messages are rolled back and it's working again. Matrix -> Telegram worked, but Telegram -> Matrix was broken until restarting.

Mar 29 09:10:47 matrix python[115]: ERROR:asyncio:Task exception was never retrieved
Mar 29 09:10:47 matrix python[115]: future: <Task finished coro=<Bot.loop() done, defined at /home/telematrix/venv/lib/python3.6/site-packages/aiotg/bot.py:57> exception=Timeo
Mar 29 09:10:47 matrix python[115]: Traceback (most recent call last):
Mar 29 09:10:47 matrix python[115]:   File "/home/telematrix/venv/lib/python3.6/site-packages/aiohttp/client.py", line 198, in _request
Mar 29 09:10:47 matrix python[115]:     conn = yield from self._connector.connect(req)
Mar 29 09:10:47 matrix python[115]:   File "/home/telematrix/venv/lib/python3.6/site-packages/aiohttp/connector.py", line 304, in connect
Mar 29 09:10:47 matrix python[115]:     yield from self._create_connection(req)
Mar 29 09:10:47 matrix python[115]:   File "/home/telematrix/venv/lib/python3.6/site-packages/aiohttp/connector.py", line 578, in _create_connection
Mar 29 09:10:47 matrix python[115]:     transport, proto = yield from self._create_direct_connection(req)
Mar 29 09:10:47 matrix python[115]:   File "/home/telematrix/venv/lib/python3.6/site-packages/aiohttp/connector.py", line 601, in _create_direct_connection
Mar 29 09:10:47 matrix python[115]:     local_addr=self._local_addr)
Mar 29 09:10:47 matrix python[115]:   File "/usr/lib/python3.6/asyncio/base_events.py", line 804, in create_connection
Mar 29 09:10:47 matrix python[115]:     sock, protocol_factory, ssl, server_hostname)
Mar 29 09:10:47 matrix python[115]:   File "/usr/lib/python3.6/asyncio/base_events.py", line 830, in _create_connection_transport
Mar 29 09:10:47 matrix python[115]:     yield from waiter
Mar 29 09:10:47 matrix python[115]: concurrent.futures._base.CancelledError
Mar 29 09:10:47 matrix python[115]: During handling of the above exception, another exception occurred:
Mar 29 09:10:47 matrix python[115]: Traceback (most recent call last):
Mar 29 09:10:47 matrix python[115]:   File "/home/telematrix/venv/lib/python3.6/site-packages/aiotg/bot.py", line 76, in loop
Mar 29 09:10:47 matrix python[115]:     timeout=self.api_timeout
Mar 29 09:10:47 matrix python[115]:   File "/home/telematrix/venv/lib/python3.6/site-packages/aiotg/bot.py", line 205, in api_call
Mar 29 09:10:47 matrix python[115]:     response = await aiohttp.post(url, data=params)
Mar 29 09:10:47 matrix python[115]:   File "/home/telematrix/venv/lib/python3.6/site-packages/aiohttp/client.py", line 613, in __await__
Mar 29 09:10:47 matrix python[115]:     return (yield from self._coro)
Mar 29 09:10:47 matrix python[115]:   File "/home/telematrix/venv/lib/python3.6/site-packages/aiohttp/client.py", line 198, in _request
Mar 29 09:10:47 matrix python[115]:     conn = yield from self._connector.connect(req)
Mar 29 09:10:47 matrix python[115]:   File "/home/telematrix/venv/lib/python3.6/site-packages/async_timeout/__init__.py", line 38, in __exit__
Mar 29 09:10:47 matrix python[115]:     self._do_exit(exc_type)
Mar 29 09:10:47 matrix python[115]:   File "/home/telematrix/venv/lib/python3.6/site-packages/async_timeout/__init__.py", line 83, in _do_exit
Mar 29 09:10:47 matrix python[115]:     raise asyncio.TimeoutError
Mar 29 09:10:47 matrix python[115]: concurrent.futures._base.TimeoutError
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant