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

clean-rooms fails with MTooLarge #33

Open
JuniorJPDJ opened this issue Dec 7, 2020 · 1 comment
Open

clean-rooms fails with MTooLarge #33

JuniorJPDJ opened this issue Dec 7, 2020 · 1 comment

Comments

@JuniorJPDJ
Copy link

It probably should be handled another way, maybe even in mautrix-python

JuniorJPDJ: clean-rooms

Telegram bridge bot:
Unhandled error while handling command:

Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/mautrix/bridge/commands/handler.py", line 405, in handle
    await self._run_handler(handler, evt)
  File "/usr/lib/python3.8/site-packages/mautrix_telegram/commands/handler.py", line 121, in _run_handler
    return await handler(evt)
  File "/usr/lib/python3.8/site-packages/mautrix/bridge/commands/handler.py", line 290, in __call__
    return await self._handler(evt)
  File "/usr/lib/python3.8/site-packages/mautrix/bridge/commands/clean_rooms.py", line 116, in clean_rooms
    return await evt.reply("\n".join(reply))
  File "/usr/lib/python3.8/site-packages/mautrix/appservice/api/intent.py", line 91, in wrapper
    return await __method(*args, **kwargs)
  File "/usr/lib/python3.8/site-packages/mautrix/appservice/api/intent.py", line 271, in send_message_event
    return await super().send_message_event(room_id, event_type, content, **kwargs)
  File "/usr/lib/python3.8/site-packages/mautrix/client/api/events.py", line 315, in send_message_event
    resp = await self.api.request(Method.PUT, url, content, **kwargs)
  File "/usr/lib/python3.8/site-packages/mautrix/api.py", line 233, in request
    return await self._send(method, full_url, content, query_params, headers or {})
  File "/usr/lib/python3.8/site-packages/mautrix/api.py", line 158, in _send
    raise make_request_error(http_status=response.status,
mautrix.errors.request.MTooLarge: event too large
@gymnae
Copy link

gymnae commented Jun 22, 2023

Is there a workaround for this? Just got hit with it as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants