You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~/signalbot/example$ python bot.py
Traceback (most recent call last):
File "/home/ubuntu/signalbot/example/bot.py", line 44, in
main()
File "/home/ubuntu/signalbot/example/bot.py", line 17, in main
signal_service = os.environ["SIGNAL_SERVICE"]
File "/usr/lib/python3.10/os.py", line 680, in __getitem__
raise KeyError(key) from None
KeyError: 'SIGNAL_SERVICE'
(.venv) ubuntu@ip-172-26-13-108:~/signalbot/example$ export SIGNAL_SERVICE="127.0.0.1"
(.venv) ubuntu@ip-172-26-13-108:~/signalbot/example$ export PHONE_NUMBER="+xxxx"
(.venv) ubuntu@ip-172-26-13-108:~/signalbot/example$ python bot.py
WARNING:root:[Bot] Could not initialize Redis. In-memory storage will be used. Restarting will delete the storage!
INFO:root:[Bot] Producer #1 started
INFO:root:[Bot] Consumer #1 started
INFO:root:[Bot] Consumer #2 started
INFO:root:[Bot] Consumer #3 started
ERROR:asyncio:Task exception was never retrieved
future: exception=GroupsError()>
Traceback (most recent call last):
File "/home/ubuntu/.venv/lib/python3.10/site-packages/aiohttp/connector.py", line 1025, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs)
File "/usr/lib/python3.10/asyncio/base_events.py", line 1076, in create_connection
raise exceptions[0]
File "/usr/lib/python3.10/asyncio/base_events.py", line 1060, in create_connection
sock = await self._connect_sock(
File "/usr/lib/python3.10/asyncio/base_events.py", line 969, in _connect_sock
await self.sock_connect(sock, address)
File "/usr/lib/python3.10/asyncio/selector_events.py", line 501, in sock_connect
return await fut
File "/usr/lib/python3.10/asyncio/selector_events.py", line 541, in _sock_connect_cb
raise OSError(err, f'Connect call failed {address}')
ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 80)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/api.py", line 132, in get_groups
resp = await session.get(uri)
File "/home/ubuntu/.venv/lib/python3.10/site-packages/aiohttp/client.py", line 581, in _request
conn = await self._connector.connect(
File "/home/ubuntu/.venv/lib/python3.10/site-packages/aiohttp/connector.py", line 544, in connect
proto = await self._create_connection(req, traces, timeout)
File "/home/ubuntu/.venv/lib/python3.10/site-packages/aiohttp/connector.py", line 944, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
File "/home/ubuntu/.venv/lib/python3.10/site-packages/aiohttp/connector.py", line 1257, in _create_direct_connection
raise last_exc
File "/home/ubuntu/.venv/lib/python3.10/site-packages/aiohttp/connector.py", line 1226, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
File "/home/ubuntu/.venv/lib/python3.10/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 127.0.0.1:80 ssl:default [Connect call failed ('127.0.0.1', 80)]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/bot.py", line 227, in _detect_groups
self.groups = await self._signal.get_groups()
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/api.py", line 139, in get_groups
raise GroupsError
signalbot.api.GroupsError
Traceback (most recent call last):
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/api.py", line 20, in receive
async with self.connection as websocket:
File "/home/ubuntu/.venv/lib/python3.10/site-packages/websockets/legacy/client.py", line 642, in aenter
return await self
File "/home/ubuntu/.venv/lib/python3.10/site-packages/websockets/legacy/client.py", line 659, in await_impl_timeout
return await asyncio.wait_for(self.await_impl(), self.open_timeout)
File "/usr/lib/python3.10/asyncio/tasks.py", line 445, in wait_for
return fut.result()
File "/home/ubuntu/.venv/lib/python3.10/site-packages/websockets/legacy/client.py", line 663, in await_impl
_transport, _protocol = await self._create_connection()
File "/usr/lib/python3.10/asyncio/base_events.py", line 1076, in create_connection
raise exceptions[0]
File "/usr/lib/python3.10/asyncio/base_events.py", line 1060, in create_connection
sock = await self._connect_sock(
File "/usr/lib/python3.10/asyncio/base_events.py", line 969, in _connect_sock
await self.sock_connect(sock, address)
File "/usr/lib/python3.10/asyncio/selector_events.py", line 501, in sock_connect
return await fut
File "/usr/lib/python3.10/asyncio/selector_events.py", line 541, in _sock_connect_cb
raise OSError(err, f'Connect call failed {address}')
ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 80)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/bot.py", line 324, in _produce
async for raw_message in self._signal.receive():
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/api.py", line 25, in receive
raise ReceiveMessagesError(e)
signalbot.api.ReceiveMessagesError: [Errno 111] Connect call failed ('127.0.0.1', 80)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/bot.py", line 294, in _rerun_on_exception
await coro(*args, **kwargs)
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/bot.py", line 336, in _produce
raise SignalBotError(f"Cannot receive messages: {e}")
signalbot.bot.SignalBotError: Cannot receive messages: [Errno 111] Connect call failed ('127.0.0.1', 80)
WARNING:root:Restarting coroutine in 1 seconds
INFO:root:[Bot] Producer #1 started
Traceback (most recent call last):
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/api.py", line 20, in receive
async with self.connection as websocket:
File "/home/ubuntu/.venv/lib/python3.10/site-packages/websockets/legacy/client.py", line 642, in aenter
return await self
File "/home/ubuntu/.venv/lib/python3.10/site-packages/websockets/legacy/client.py", line 659, in await_impl_timeout
return await asyncio.wait_for(self.await_impl(), self.open_timeout)
File "/usr/lib/python3.10/asyncio/tasks.py", line 445, in wait_for
return fut.result()
File "/home/ubuntu/.venv/lib/python3.10/site-packages/websockets/legacy/client.py", line 663, in await_impl
_transport, _protocol = await self._create_connection()
File "/usr/lib/python3.10/asyncio/base_events.py", line 1076, in create_connection
raise exceptions[0]
File "/usr/lib/python3.10/asyncio/base_events.py", line 1060, in create_connection
sock = await self._connect_sock(
File "/usr/lib/python3.10/asyncio/base_events.py", line 969, in _connect_sock
await self.sock_connect(sock, address)
File "/usr/lib/python3.10/asyncio/selector_events.py", line 501, in sock_connect
return await fut
File "/usr/lib/python3.10/asyncio/selector_events.py", line 541, in _sock_connect_cb
raise OSError(err, f'Connect call failed {address}')
ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 80)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/bot.py", line 324, in _produce
async for raw_message in self._signal.receive():
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/api.py", line 25, in receive
raise ReceiveMessagesError(e)
signalbot.api.ReceiveMessagesError: [Errno 111] Connect call failed ('127.0.0.1', 80)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/bot.py", line 294, in _rerun_on_exception
await coro(*args, **kwargs)
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/bot.py", line 336, in _produce
raise SignalBotError(f"Cannot receive messages: {e}")
signalbot.bot.SignalBotError: Cannot receive messages: [Errno 111] Connect call failed ('127.0.0.1', 80)
WARNING:root:Restarting coroutine in 2 seconds
INFO:root:[Bot] Producer #1 started
Traceback (most recent call last):
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/api.py", line 20, in receive
async with self.connection as websocket:
File "/home/ubuntu/.venv/lib/python3.10/site-packages/websockets/legacy/client.py", line 642, in aenter
return await self
File "/home/ubuntu/.venv/lib/python3.10/site-packages/websockets/legacy/client.py", line 659, in await_impl_timeout
return await asyncio.wait_for(self.await_impl(), self.open_timeout)
File "/usr/lib/python3.10/asyncio/tasks.py", line 445, in wait_for
return fut.result()
File "/home/ubuntu/.venv/lib/python3.10/site-packages/websockets/legacy/client.py", line 663, in await_impl
_transport, _protocol = await self._create_connection()
File "/usr/lib/python3.10/asyncio/base_events.py", line 1076, in create_connection
raise exceptions[0]
File "/usr/lib/python3.10/asyncio/base_events.py", line 1060, in create_connection
sock = await self._connect_sock(
File "/usr/lib/python3.10/asyncio/base_events.py", line 969, in _connect_sock
await self.sock_connect(sock, address)
File "/usr/lib/python3.10/asyncio/selector_events.py", line 501, in sock_connect
return await fut
File "/usr/lib/python3.10/asyncio/selector_events.py", line 541, in _sock_connect_cb
raise OSError(err, f'Connect call failed {address}')
ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 80)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/bot.py", line 324, in _produce
async for raw_message in self._signal.receive():
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/api.py", line 25, in receive
raise ReceiveMessagesError(e)
signalbot.api.ReceiveMessagesError: [Errno 111] Connect call failed ('127.0.0.1', 80)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/bot.py", line 294, in _rerun_on_exception
await coro(*args, **kwargs)
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/bot.py", line 336, in _produce
raise SignalBotError(f"Cannot receive messages: {e}")
signalbot.bot.SignalBotError: Cannot receive messages: [Errno 111] Connect call failed ('127.0.0.1', 80)
WARNING:root:Restarting coroutine in 4 seconds
INFO:root:[Bot] Producer #1 started
Traceback (most recent call last):
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/api.py", line 20, in receive
async with self.connection as websocket:
File "/home/ubuntu/.venv/lib/python3.10/site-packages/websockets/legacy/client.py", line 642, in aenter
return await self
File "/home/ubuntu/.venv/lib/python3.10/site-packages/websockets/legacy/client.py", line 659, in await_impl_timeout
return await asyncio.wait_for(self.await_impl(), self.open_timeout)
File "/usr/lib/python3.10/asyncio/tasks.py", line 445, in wait_for
return fut.result()
File "/home/ubuntu/.venv/lib/python3.10/site-packages/websockets/legacy/client.py", line 663, in await_impl
_transport, _protocol = await self._create_connection()
File "/usr/lib/python3.10/asyncio/base_events.py", line 1076, in create_connection
raise exceptions[0]
File "/usr/lib/python3.10/asyncio/base_events.py", line 1060, in create_connection
sock = await self._connect_sock(
File "/usr/lib/python3.10/asyncio/base_events.py", line 969, in _connect_sock
await self.sock_connect(sock, address)
File "/usr/lib/python3.10/asyncio/selector_events.py", line 501, in sock_connect
return await fut
File "/usr/lib/python3.10/asyncio/selector_events.py", line 541, in _sock_connect_cb
raise OSError(err, f'Connect call failed {address}')
ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 80)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/bot.py", line 324, in _produce
async for raw_message in self._signal.receive():
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/api.py", line 25, in receive
raise ReceiveMessagesError(e)
signalbot.api.ReceiveMessagesError: [Errno 111] Connect call failed ('127.0.0.1', 80)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/bot.py", line 294, in _rerun_on_exception
await coro(*args, **kwargs)
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/bot.py", line 336, in _produce
raise SignalBotError(f"Cannot receive messages: {e}")
signalbot.bot.SignalBotError: Cannot receive messages: [Errno 111] Connect call failed ('127.0.0.1', 80)
WARNING:root:Restarting coroutine in 8 seconds
Please let me know if you need any further details to help debug this! Not sure what is going wrong with the coroutine / connect call failed error...
The text was updated successfully, but these errors were encountered:
Steps to reproduce (testing on Ubuntu 22.04.1 LTS on a LightSail AWS server for free):
Original command:
Modified command because the original one yields errors:
Then register; then kill the docker container and restart in rpc mode:
Original command:
Modified command because the original command breaks:
This yields the following logs:
Then clone the repo and run the example:
Error message:
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/api.py", line 132, in get_groups
resp = await session.get(uri)
File "/home/ubuntu/.venv/lib/python3.10/site-packages/aiohttp/client.py", line 581, in _request
conn = await self._connector.connect(
File "/home/ubuntu/.venv/lib/python3.10/site-packages/aiohttp/connector.py", line 544, in connect
proto = await self._create_connection(req, traces, timeout)
File "/home/ubuntu/.venv/lib/python3.10/site-packages/aiohttp/connector.py", line 944, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
File "/home/ubuntu/.venv/lib/python3.10/site-packages/aiohttp/connector.py", line 1257, in _create_direct_connection
raise last_exc
File "/home/ubuntu/.venv/lib/python3.10/site-packages/aiohttp/connector.py", line 1226, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
File "/home/ubuntu/.venv/lib/python3.10/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 127.0.0.1:80 ssl:default [Connect call failed ('127.0.0.1', 80)]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/bot.py", line 227, in _detect_groups
self.groups = await self._signal.get_groups()
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/api.py", line 139, in get_groups
raise GroupsError
signalbot.api.GroupsError
Traceback (most recent call last):
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/api.py", line 20, in receive
async with self.connection as websocket:
File "/home/ubuntu/.venv/lib/python3.10/site-packages/websockets/legacy/client.py", line 642, in aenter
return await self
File "/home/ubuntu/.venv/lib/python3.10/site-packages/websockets/legacy/client.py", line 659, in await_impl_timeout
return await asyncio.wait_for(self.await_impl(), self.open_timeout)
File "/usr/lib/python3.10/asyncio/tasks.py", line 445, in wait_for
return fut.result()
File "/home/ubuntu/.venv/lib/python3.10/site-packages/websockets/legacy/client.py", line 663, in await_impl
_transport, _protocol = await self._create_connection()
File "/usr/lib/python3.10/asyncio/base_events.py", line 1076, in create_connection
raise exceptions[0]
File "/usr/lib/python3.10/asyncio/base_events.py", line 1060, in create_connection
sock = await self._connect_sock(
File "/usr/lib/python3.10/asyncio/base_events.py", line 969, in _connect_sock
await self.sock_connect(sock, address)
File "/usr/lib/python3.10/asyncio/selector_events.py", line 501, in sock_connect
return await fut
File "/usr/lib/python3.10/asyncio/selector_events.py", line 541, in _sock_connect_cb
raise OSError(err, f'Connect call failed {address}')
ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 80)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/bot.py", line 324, in _produce
async for raw_message in self._signal.receive():
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/api.py", line 25, in receive
raise ReceiveMessagesError(e)
signalbot.api.ReceiveMessagesError: [Errno 111] Connect call failed ('127.0.0.1', 80)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/bot.py", line 294, in _rerun_on_exception
await coro(*args, **kwargs)
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/bot.py", line 336, in _produce
raise SignalBotError(f"Cannot receive messages: {e}")
signalbot.bot.SignalBotError: Cannot receive messages: [Errno 111] Connect call failed ('127.0.0.1', 80)
WARNING:root:Restarting coroutine in 1 seconds
INFO:root:[Bot] Producer #1 started
Traceback (most recent call last):
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/api.py", line 20, in receive
async with self.connection as websocket:
File "/home/ubuntu/.venv/lib/python3.10/site-packages/websockets/legacy/client.py", line 642, in aenter
return await self
File "/home/ubuntu/.venv/lib/python3.10/site-packages/websockets/legacy/client.py", line 659, in await_impl_timeout
return await asyncio.wait_for(self.await_impl(), self.open_timeout)
File "/usr/lib/python3.10/asyncio/tasks.py", line 445, in wait_for
return fut.result()
File "/home/ubuntu/.venv/lib/python3.10/site-packages/websockets/legacy/client.py", line 663, in await_impl
_transport, _protocol = await self._create_connection()
File "/usr/lib/python3.10/asyncio/base_events.py", line 1076, in create_connection
raise exceptions[0]
File "/usr/lib/python3.10/asyncio/base_events.py", line 1060, in create_connection
sock = await self._connect_sock(
File "/usr/lib/python3.10/asyncio/base_events.py", line 969, in _connect_sock
await self.sock_connect(sock, address)
File "/usr/lib/python3.10/asyncio/selector_events.py", line 501, in sock_connect
return await fut
File "/usr/lib/python3.10/asyncio/selector_events.py", line 541, in _sock_connect_cb
raise OSError(err, f'Connect call failed {address}')
ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 80)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/bot.py", line 324, in _produce
async for raw_message in self._signal.receive():
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/api.py", line 25, in receive
raise ReceiveMessagesError(e)
signalbot.api.ReceiveMessagesError: [Errno 111] Connect call failed ('127.0.0.1', 80)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/bot.py", line 294, in _rerun_on_exception
await coro(*args, **kwargs)
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/bot.py", line 336, in _produce
raise SignalBotError(f"Cannot receive messages: {e}")
signalbot.bot.SignalBotError: Cannot receive messages: [Errno 111] Connect call failed ('127.0.0.1', 80)
WARNING:root:Restarting coroutine in 2 seconds
INFO:root:[Bot] Producer #1 started
Traceback (most recent call last):
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/api.py", line 20, in receive
async with self.connection as websocket:
File "/home/ubuntu/.venv/lib/python3.10/site-packages/websockets/legacy/client.py", line 642, in aenter
return await self
File "/home/ubuntu/.venv/lib/python3.10/site-packages/websockets/legacy/client.py", line 659, in await_impl_timeout
return await asyncio.wait_for(self.await_impl(), self.open_timeout)
File "/usr/lib/python3.10/asyncio/tasks.py", line 445, in wait_for
return fut.result()
File "/home/ubuntu/.venv/lib/python3.10/site-packages/websockets/legacy/client.py", line 663, in await_impl
_transport, _protocol = await self._create_connection()
File "/usr/lib/python3.10/asyncio/base_events.py", line 1076, in create_connection
raise exceptions[0]
File "/usr/lib/python3.10/asyncio/base_events.py", line 1060, in create_connection
sock = await self._connect_sock(
File "/usr/lib/python3.10/asyncio/base_events.py", line 969, in _connect_sock
await self.sock_connect(sock, address)
File "/usr/lib/python3.10/asyncio/selector_events.py", line 501, in sock_connect
return await fut
File "/usr/lib/python3.10/asyncio/selector_events.py", line 541, in _sock_connect_cb
raise OSError(err, f'Connect call failed {address}')
ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 80)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/bot.py", line 324, in _produce
async for raw_message in self._signal.receive():
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/api.py", line 25, in receive
raise ReceiveMessagesError(e)
signalbot.api.ReceiveMessagesError: [Errno 111] Connect call failed ('127.0.0.1', 80)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/bot.py", line 294, in _rerun_on_exception
await coro(*args, **kwargs)
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/bot.py", line 336, in _produce
raise SignalBotError(f"Cannot receive messages: {e}")
signalbot.bot.SignalBotError: Cannot receive messages: [Errno 111] Connect call failed ('127.0.0.1', 80)
WARNING:root:Restarting coroutine in 4 seconds
INFO:root:[Bot] Producer #1 started
Traceback (most recent call last):
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/api.py", line 20, in receive
async with self.connection as websocket:
File "/home/ubuntu/.venv/lib/python3.10/site-packages/websockets/legacy/client.py", line 642, in aenter
return await self
File "/home/ubuntu/.venv/lib/python3.10/site-packages/websockets/legacy/client.py", line 659, in await_impl_timeout
return await asyncio.wait_for(self.await_impl(), self.open_timeout)
File "/usr/lib/python3.10/asyncio/tasks.py", line 445, in wait_for
return fut.result()
File "/home/ubuntu/.venv/lib/python3.10/site-packages/websockets/legacy/client.py", line 663, in await_impl
_transport, _protocol = await self._create_connection()
File "/usr/lib/python3.10/asyncio/base_events.py", line 1076, in create_connection
raise exceptions[0]
File "/usr/lib/python3.10/asyncio/base_events.py", line 1060, in create_connection
sock = await self._connect_sock(
File "/usr/lib/python3.10/asyncio/base_events.py", line 969, in _connect_sock
await self.sock_connect(sock, address)
File "/usr/lib/python3.10/asyncio/selector_events.py", line 501, in sock_connect
return await fut
File "/usr/lib/python3.10/asyncio/selector_events.py", line 541, in _sock_connect_cb
raise OSError(err, f'Connect call failed {address}')
ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 80)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/bot.py", line 324, in _produce
async for raw_message in self._signal.receive():
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/api.py", line 25, in receive
raise ReceiveMessagesError(e)
signalbot.api.ReceiveMessagesError: [Errno 111] Connect call failed ('127.0.0.1', 80)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/bot.py", line 294, in _rerun_on_exception
await coro(*args, **kwargs)
File "/home/ubuntu/.venv/lib/python3.10/site-packages/signalbot/bot.py", line 336, in _produce
raise SignalBotError(f"Cannot receive messages: {e}")
signalbot.bot.SignalBotError: Cannot receive messages: [Errno 111] Connect call failed ('127.0.0.1', 80)
WARNING:root:Restarting coroutine in 8 seconds
Please let me know if you need any further details to help debug this! Not sure what is going wrong with the coroutine / connect call failed error...
The text was updated successfully, but these errors were encountered: