Open tohojo opened 3 years ago
I just set up the bridge using the Docker image (mautrix-twitter 0.1.2+dev.257c4c00) and I'm getting the same thing. When a new message comes in from a user with whom I'm not already in a chat, I'm getting this in the log:
[2021-09-16 18:56:54,583] [ERROR@mau.twitter.api.@brad:koehn.com] Error while handling event of type <class 'mautwitdm.types.message.MessageEntry'>
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/mautrix/appservice/api/intent.py", line 336, in ensure_joined
await self.join_room(room_id, max_retries=0)
File "/usr/lib/python3.9/site-packages/mautrix/appservice/api/intent.py", line 83, in wrapper
return await __method(*args, **kwargs)
File "/usr/lib/python3.9/site-packages/mautrix/client/api/rooms.py", line 263, in join_room
content = await self.api.request(Method.POST, Path.join[room_id_or_alias],
File "/usr/lib/python3.9/site-packages/mautrix/api.py", line 259, in request
return await self._send(method, full_url, content, query_params, headers or {})
File "/usr/lib/python3.9/site-packages/mautrix/api.py", line 180, in _send
raise make_request_error(http_status=response.status,
mautrix.errors.request.MForbidden: You are not invited to this room.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/mautrix/appservice/api/intent.py", line 336, in ensure_joined
await self.join_room(room_id, max_retries=0)
File "/usr/lib/python3.9/site-packages/mautrix/appservice/api/intent.py", line 83, in wrapper
return await __method(*args, **kwargs)
File "/usr/lib/python3.9/site-packages/mautrix/client/api/rooms.py", line 263, in join_room
content = await self.api.request(Method.POST, Path.join[room_id_or_alias],
File "/usr/lib/python3.9/site-packages/mautrix/api.py", line 259, in request
return await self._send(method, full_url, content, query_params, headers or {})
File "/usr/lib/python3.9/site-packages/mautrix/api.py", line 180, in _send
raise make_request_error(http_status=response.status,
mautrix.errors.request.MForbidden: You are not invited to this room.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/mautrix-twitter/mautwitdm/dispatcher.py", line 33, in dispatch
await handler(event)
File "/usr/lib/python3.9/site-packages/mautrix/util/opt_prometheus.py", line 47, in wrapper
return await fn(*args, **kwargs)
File "/usr/lib/python3.9/site-packages/mautrix_twitter/user.py", line 338, in handle_message
await portal.create_matrix_room(self, evt.conversation)
File "/usr/lib/python3.9/site-packages/mautrix_twitter/portal.py", line 590, in create_matrix_room
return await self._create_matrix_room(source, info)
File "/usr/lib/python3.9/site-packages/mautrix_twitter/portal.py", line 677, in _create_matrix_room
await self._update_participants(info.participants)
File "/usr/lib/python3.9/site-packages/mautrix_twitter/portal.py", line 449, in _update_participants
await puppet.intent_for(self).ensure_joined(self.mxid)
File "/usr/lib/python3.9/site-packages/mautrix/appservice/api/intent.py", line 342, in ensure_joined
await bot.invite_user(room_id, self.mxid)
File "/usr/lib/python3.9/site-packages/mautrix/appservice/api/intent.py", line 94, in wrapper
await __self.ensure_joined(room_id)
File "/usr/lib/python3.9/site-packages/mautrix/appservice/api/intent.py", line 340, in ensure_joined
raise IntentError(f"Failed to join room {room_id} as {self.mxid}") from e
mautrix.errors.base.IntentError: Failed to join room ![redacted]:koehn.com as @twitterbot:koehn.com
I noticed that my twitter bridge was not picking up new messages, so I tried to issue a 'sync' which gets me the following response:
I tried upgrading the bridge to the latest git version, which didn't help either. I did get new messages to appear after restarting the bridge, but I still get that error when issuing a 'sync' command in the control channel.