Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot unbridge direct chat #495

Closed
f4814 opened this issue Jul 7, 2020 · 0 comments
Closed

Cannot unbridge direct chat #495

f4814 opened this issue Jul 7, 2020 · 0 comments
Labels
bug: defect Something isn't working and it never has worked
Milestone

Comments

@f4814
Copy link

f4814 commented Jul 7, 2020

I get this error: (I think I have encountered a similar error while doing long backfills, but I'm not sure)

[2020-07-07 21:01:11,264] [[email protected]] Unhandled error while handling command unbridge  from @fabian:intothecyber.space (ref: 1594143567)
Traceback (most recent call last):
  File "/var/lib/mautrix-telegram/lib/python3.7/site-packages/mautrix/appservice/api/intent.py", line 357, in ensure_joined
    await self.join_room(room_id, max_retries=0)
  File "/var/lib/mautrix-telegram/lib/python3.7/site-packages/mautrix/appservice/api/intent.py", line 75, in wrapper
    return await __method(*args, **kwargs)
  File "/var/lib/mautrix-telegram/lib/python3.7/site-packages/mautrix/client/api/rooms.py", line 253, in join_room
    content=content, query_params=query_params)
  File "/var/lib/mautrix-telegram/lib/python3.7/site-packages/mautrix/api/http.py", line 203, in request
    return await self._send(method, endpoint, content, query_params, headers or {})
  File "/var/lib/mautrix-telegram/lib/python3.7/site-packages/mautrix/api/http.py", line 145, in _send
    errcode=errcode, message=message)
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 "/var/lib/mautrix-telegram/lib/python3.7/site-packages/mautrix/bridge/commands/handler.py", line 365, in handle
    await self._run_handler(handler, evt)
  File "/var/lib/mautrix-telegram/lib/python3.7/site-packages/mautrix_telegram/commands/handler.py", line 130, in _run_handler
    return await handler(evt)
  File "/var/lib/mautrix-telegram/lib/python3.7/site-packages/mautrix/bridge/commands/handler.py", line 253, in __call__
    return await self._handler(evt)
  File "/var/lib/mautrix-telegram/lib/python3.7/site-packages/mautrix_telegram/commands/portal/unbridge.py", line 92, in unbridge
    return await evt.reply(f"Please confirm unbridging chat \"{portal.title}\" from room "
  File "/var/lib/mautrix-telegram/lib/python3.7/site-packages/mautrix/appservice/api/intent.py", line 86, in wrapper
    await __self.ensure_joined(room_id)
  File "/var/lib/mautrix-telegram/lib/python3.7/site-packages/mautrix/appservice/api/intent.py", line 361, 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 !bMvSThCUlnHhKPKOfv:intothecyber.space as @telegrambot:intothecyber.space
[2020-07-07 21:01:11,279] [[email protected]] Exception in Matrix event handler
Traceback (most recent call last):
  File "/var/lib/mautrix-telegram/lib/python3.7/site-packages/mautrix/appservice/api/intent.py", line 357, in ensure_joined
    await self.join_room(room_id, max_retries=0)
  File "/var/lib/mautrix-telegram/lib/python3.7/site-packages/mautrix/appservice/api/intent.py", line 75, in wrapper
    return await __method(*args, **kwargs)
  File "/var/lib/mautrix-telegram/lib/python3.7/site-packages/mautrix/client/api/rooms.py", line 253, in join_room
    content=content, query_params=query_params)
  File "/var/lib/mautrix-telegram/lib/python3.7/site-packages/mautrix/api/http.py", line 203, in request
    return await self._send(method, endpoint, content, query_params, headers or {})
  File "/var/lib/mautrix-telegram/lib/python3.7/site-packages/mautrix/api/http.py", line 145, in _send
    errcode=errcode, message=message)
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 "/var/lib/mautrix-telegram/lib/python3.7/site-packages/mautrix/bridge/commands/handler.py", line 365, in handle
    await self._run_handler(handler, evt)
  File "/var/lib/mautrix-telegram/lib/python3.7/site-packages/mautrix_telegram/commands/handler.py", line 130, in _run_handler
    return await handler(evt)
  File "/var/lib/mautrix-telegram/lib/python3.7/site-packages/mautrix/bridge/commands/handler.py", line 253, in __call__
    return await self._handler(evt)
  File "/var/lib/mautrix-telegram/lib/python3.7/site-packages/mautrix_telegram/commands/portal/unbridge.py", line 92, in unbridge
    return await evt.reply(f"Please confirm unbridging chat \"{portal.title}\" from room "
  File "/var/lib/mautrix-telegram/lib/python3.7/site-packages/mautrix/appservice/api/intent.py", line 86, in wrapper
    await __self.ensure_joined(room_id)
  File "/var/lib/mautrix-telegram/lib/python3.7/site-packages/mautrix/appservice/api/intent.py", line 361, 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 !bMvSThCUlnHhKPKOfv:intothecyber.space as @telegrambot:intothecyber.space
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/var/lib/mautrix-telegram/lib/python3.7/site-packages/mautrix/appservice/api/intent.py", line 357, in ensure_joined
    await self.join_room(room_id, max_retries=0)
  File "/var/lib/mautrix-telegram/lib/python3.7/site-packages/mautrix/appservice/api/intent.py", line 75, in wrapper
    return await __method(*args, **kwargs)
  File "/var/lib/mautrix-telegram/lib/python3.7/site-packages/mautrix/client/api/rooms.py", line 253, in join_room
    content=content, query_params=query_params)
  File "/var/lib/mautrix-telegram/lib/python3.7/site-packages/mautrix/api/http.py", line 203, in request
    return await self._send(method, endpoint, content, query_params, headers or {})
  File "/var/lib/mautrix-telegram/lib/python3.7/site-packages/mautrix/api/http.py", line 145, in _send
    errcode=errcode, message=message)
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 "/var/lib/mautrix-telegram/lib/python3.7/site-packages/mautrix/appservice/as_handler.py", line 147, in try_handle
    await handler_func(event)
  File "/var/lib/mautrix-telegram/lib/python3.7/site-packages/mautrix/bridge/matrix.py", line 376, in int_handle_event
    await self.handle_message(evt.room_id, evt.sender, evt.content, evt.event_id)
  File "/var/lib/mautrix-telegram/lib/python3.7/site-packages/mautrix/bridge/matrix.py", line 290, in handle_message
    is_management, is_portal=portal is not None)
  File "/var/lib/mautrix-telegram/lib/python3.7/site-packages/mautrix/bridge/commands/handler.py", line 371, in handle
    await evt.reply("Unhandled error while handling command:\n\n"
  File "/var/lib/mautrix-telegram/lib/python3.7/site-packages/mautrix/appservice/api/intent.py", line 86, in wrapper
    await __self.ensure_joined(room_id)
  File "/var/lib/mautrix-telegram/lib/python3.7/site-packages/mautrix/appservice/api/intent.py", line 361, 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 !bMvSThCUlnHhKPKOfv:intothecyber.space as @telegrambot:intothecyber.space
@tulir tulir added the bug: defect Something isn't working and it never has worked label Oct 29, 2020
@tulir tulir added this to the 0.9.0 milestone Oct 29, 2020
@tulir tulir closed this as completed in dd3bdd2 Oct 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: defect Something isn't working and it never has worked
Development

No branches or pull requests

2 participants