python icon indicating copy to clipboard operation
python copied to clipboard

clean-rooms fails with MTooLarge

Open JuniorJPDJ opened this issue 4 years ago • 1 comments

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

JuniorJPDJ avatar Dec 07 '20 20:12 JuniorJPDJ

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

gymnae avatar Jun 22 '23 21:06 gymnae