mautrix rate limiting #15

Open
opened 2021-06-03 21:01:32 -04:00 by lecris · 0 comments
Contributor

Sometimes it seems to encounter a rate-limiting issue. On an encrypted setup I didn't find the same problem though maybe due to the overhead.

[2021-06-03 14:51:24,589] [DEBUG@mau.portal.ud15d49b34a546ebc38c9195e7cb9dc23] Got 28 messages from server
[2021-06-03 14:51:24,613] [ERROR@mau.portal.ud15d49b34a546ebc38c9195e7cb9dc23] Failed to backfill portal
Traceback (most recent call last):
  File "/opt/synapse/bridges/matrix-puppeteer-line/matrix_puppeteer_line/portal.py", line 542, in backfill
    await self._backfill(source)
  File "/opt/synapse/bridges/matrix-puppeteer-line/matrix_puppeteer_line/portal.py", line 560, in _backfill
    await self.handle_remote_message(source, evt)
  File "/opt/synapse/bridges/matrix-puppeteer-line/matrix_puppeteer_line/portal.py", line 325, in handle_remote_message
    event_id = await self._send_message(intent, content, timestamp=evt.timestamp)
  File "/opt/synapse/env/lib64/python3.8/site-packages/mautrix/bridge/portal.py", line 82, in _send_message
    return await intent.send_message_event(self.mxid, event_type, content, **kwargs)
  File "/opt/synapse/env/lib64/python3.8/site-packages/mautrix/appservice/api/intent.py", line 95, in wrapper
    return await __method(*args, **kwargs)
  File "/opt/synapse/env/lib64/python3.8/site-packages/mautrix/appservice/api/intent.py", line 281, in send_message_event
    return await super().send_message_event(room_id, event_type, content, **kwargs)
  File "/opt/synapse/env/lib64/python3.8/site-packages/mautrix/client/api/events.py", line 317, in send_message_event
    resp = await self.api.request(Method.PUT, url, content, **kwargs)
  File "/opt/synapse/env/lib64/python3.8/site-packages/mautrix/api.py", line 254, in request
    return await self._send(method, full_url, content, query_params, headers or {})
  File "/opt/synapse/env/lib64/python3.8/site-packages/mautrix/api.py", line 177, in _send
    raise make_request_error(http_status=response.status,
mautrix.errors.request.MLimitExceeded: Too Many Requests
{'ud15d49b34a546ebc38c9195e7cb9dc23'}

Sometimes it seems to encounter a rate-limiting issue. On an encrypted setup I didn't find the same problem though maybe due to the overhead. ```log [2021-06-03 14:51:24,589] [DEBUG@mau.portal.ud15d49b34a546ebc38c9195e7cb9dc23] Got 28 messages from server [2021-06-03 14:51:24,613] [ERROR@mau.portal.ud15d49b34a546ebc38c9195e7cb9dc23] Failed to backfill portal Traceback (most recent call last): File "/opt/synapse/bridges/matrix-puppeteer-line/matrix_puppeteer_line/portal.py", line 542, in backfill await self._backfill(source) File "/opt/synapse/bridges/matrix-puppeteer-line/matrix_puppeteer_line/portal.py", line 560, in _backfill await self.handle_remote_message(source, evt) File "/opt/synapse/bridges/matrix-puppeteer-line/matrix_puppeteer_line/portal.py", line 325, in handle_remote_message event_id = await self._send_message(intent, content, timestamp=evt.timestamp) File "/opt/synapse/env/lib64/python3.8/site-packages/mautrix/bridge/portal.py", line 82, in _send_message return await intent.send_message_event(self.mxid, event_type, content, **kwargs) File "/opt/synapse/env/lib64/python3.8/site-packages/mautrix/appservice/api/intent.py", line 95, in wrapper return await __method(*args, **kwargs) File "/opt/synapse/env/lib64/python3.8/site-packages/mautrix/appservice/api/intent.py", line 281, in send_message_event return await super().send_message_event(room_id, event_type, content, **kwargs) File "/opt/synapse/env/lib64/python3.8/site-packages/mautrix/client/api/events.py", line 317, in send_message_event resp = await self.api.request(Method.PUT, url, content, **kwargs) File "/opt/synapse/env/lib64/python3.8/site-packages/mautrix/api.py", line 254, in request return await self._send(method, full_url, content, query_params, headers or {}) File "/opt/synapse/env/lib64/python3.8/site-packages/mautrix/api.py", line 177, in _send raise make_request_error(http_status=response.status, mautrix.errors.request.MLimitExceeded: Too Many Requests {'ud15d49b34a546ebc38c9195e7cb9dc23'} ```
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: fair/matrix-puppeteer-line#15
No description provided.