Open Berulacks opened 5 years ago
I got this too, got around this error by using the code from hangups to login:
diff --git a/matrix_appservice_hangouts/hangouts_client.py b/matrix_appservice_hangouts/hangouts_client.py
index c300ddd..04d2ff3 100644
--- a/matrix_appservice_hangouts/hangouts_client.py
+++ b/matrix_appservice_hangouts/hangouts_client.py
@@ -74,7 +74,8 @@ class HangoutsClient:
"""
Login and make a thing
"""
- cookies = await cls.login(refresh_token, client_session)
+ #cookies = await cls.login(refresh_token, client_session)
+ cookies = hangups.get_auth_stdin('refresh_token.txt')
client = cls(cookies, recieve_event_handler, loop=loop, client_session=client_session)
await client.setup()
await client.get_self()
@@ -96,7 +97,6 @@ class HangoutsClient:
Setup stuff that's async
"""
task = asyncio.ensure_future(self.client.connect())
-
# Wait for hangups to either finish connecting or raise an exception.
on_connect = asyncio.Future()
self.client.on_connect.add_observer(lambda: on_connect.set_result(None))
This makes the login to hangouts successful again except everything crashes for be now because I have old hangouts rooms in my matrix server and every time I restart the bridge it tries to connect more times and that causes database errors.
Trying to log in to hangouts via the app service, I'm receiving the following output/error:
Thing is, Hangups itself works fine: I'm able to log in and chat without issue when simply running
hangups
. I'm using the same refresh token from~/.cache/hangups/refresh_token.txt
.While troubleshooting I stumbled upon this hangups issue. I've ensured I'm running
aiohttp>=3.3,<4
as per itsrequirements.txt
, but still no luck.I'm on Debian 9.8 and running python 3.6.8.
Anyone else having this issue?