Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Fails to join room because response body is too large #9992

Closed
symphorien opened this issue May 14, 2021 · 1 comment
Closed

Fails to join room because response body is too large #9992

symphorien opened this issue May 14, 2021 · 1 comment
Labels
S-Major Major functionality / product severely impaired, no satisfactory workaround. T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues.

Comments

@symphorien
Copy link

When joining #freenode_#nixos:matrix.org, joining fails and I get the following backtrace

2021-05-13T18:22:57.133 1274900691998 matrix-synapse.service homeserver[28729] INFO {PUT-O-6306} [matrix.org] JSON response exceeded max size 104857600 - PUT matrix://matrix.org/_matrix/federation/v2/send_join/%21AinLFXQRxTuqNpXyXk%3Amatrix.org/%24162092293411DFmcY%3Axlumurb.eu
2021-05-13T18:22:57.348 1274900906651 matrix-synapse.service homeserver[28729] INFO Failed to send_join via matrix.org
2021-05-13T18:22:57.348 1274900906651 matrix-synapse.service homeserver[28729] INFO Traceback (most recent call last):
2021-05-13T18:22:57.348 1274900906651 matrix-synapse.service homeserver[28729] INFO   File "/nix/store/0k6lr4z1vxgv2vhclfkpsgppwi15p7ri-matrix-synapse-1.33.2/lib/python3.8/site-packages/synapse/http/matrixfederationclient.py", line 183, in _handle_json_response
2021-05-13T18:22:57.348 1274900906651 matrix-synapse.service homeserver[28729] INFO     body = await make_deferred_yieldable(d)
2021-05-13T18:22:57.348 1274900906651 matrix-synapse.service homeserver[28729] INFO synapse.http.client.BodyExceededMaxSize
2021-05-13T18:22:57.348 1274900906651 matrix-synapse.service homeserver[28729] INFO The above exception was the direct cause of the following exception:
2021-05-13T18:22:57.348 1274900906651 matrix-synapse.service homeserver[28729] INFO Traceback (most recent call last):
2021-05-13T18:22:57.348 1274900906651 matrix-synapse.service homeserver[28729] INFO   File "/nix/store/0k6lr4z1vxgv2vhclfkpsgppwi15p7ri-matrix-synapse-1.33.2/lib/python3.8/site-packages/synapse/federation/federation_client.py", line 517, in _try_destination_list
2021-05-13T18:22:57.348 1274900906651 matrix-synapse.service homeserver[28729] INFO     return await callback(destination)
2021-05-13T18:22:57.348 1274900906651 matrix-synapse.service homeserver[28729] INFO   File "/nix/store/0k6lr4z1vxgv2vhclfkpsgppwi15p7ri-matrix-synapse-1.33.2/lib/python3.8/site-packages/synapse/federation/federation_client.py", line 668, in send_request
2021-05-13T18:22:57.348 1274900906651 matrix-synapse.service homeserver[28729] INFO     content = await self._do_send_join(destination, pdu)
2021-05-13T18:22:57.348 1274900906651 matrix-synapse.service homeserver[28729] INFO   File "/nix/store/0k6lr4z1vxgv2vhclfkpsgppwi15p7ri-matrix-synapse-1.33.2/lib/python3.8/site-packages/synapse/federation/federation_client.py", line 759, in _do_send_join
2021-05-13T18:22:57.348 1274900906651 matrix-synapse.service homeserver[28729] INFO     return await self.transport_layer.send_join_v2(
2021-05-13T18:22:57.348 1274900906651 matrix-synapse.service homeserver[28729] INFO   File "/nix/store/0k6lr4z1vxgv2vhclfkpsgppwi15p7ri-matrix-synapse-1.33.2/lib/python3.8/site-packages/synapse/federation/transport/client.py", line 256, in send_join_v2
2021-05-13T18:22:57.348 1274900906651 matrix-synapse.service homeserver[28729] INFO     response = await self.client.put_json(
2021-05-13T18:22:57.348 1274900906651 matrix-synapse.service homeserver[28729] INFO   File "/nix/store/0k6lr4z1vxgv2vhclfkpsgppwi15p7ri-matrix-synapse-1.33.2/lib/python3.8/site-packages/synapse/http/matrixfederationclient.py", line 759, in put_json
2021-05-13T18:22:57.348 1274900906651 matrix-synapse.service homeserver[28729] INFO     body = await _handle_json_response(
2021-05-13T18:22:57.348 1274900906651 matrix-synapse.service homeserver[28729] INFO   File "/nix/store/0k6lr4z1vxgv2vhclfkpsgppwi15p7ri-matrix-synapse-1.33.2/lib/python3.8/site-packages/synapse/http/matrixfederationclient.py", line 194, in _handle_json_response
2021-05-13T18:22:57.348 1274900906651 matrix-synapse.service homeserver[28729] INFO     raise RequestSendFailed(e, can_retry=False) from e
2021-05-13T18:22:57.348 1274900906651 matrix-synapse.service homeserver[28729] INFO synapse.api.errors.RequestSendFailed: Failed to send request: BodyExceededMaxSize:

Originally posted by @symphorien in #9920 (comment)

Synapse 1.33.2, Nixos 20.09 on x86_64-linux.
The backtrace is there in full, it is not truncated.

@richvdh richvdh changed the title Fails to join room because request body is too large Fails to join room because response body is too large May 14, 2021
@erikjohnston erikjohnston added T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues. S-Major Major functionality / product severely impaired, no satisfactory workaround. labels May 20, 2021
@erikjohnston
Copy link
Member

This actually looks to be a duplicate of #9956, so I'm going to close this in favour of that one. Thanks for providing the logs though! 🙂

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
S-Major Major functionality / product severely impaired, no satisfactory workaround. T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
Projects
None yet
Development

No branches or pull requests

2 participants