Open frebib opened 3 months ago
Potentially related: https://github.com/element-hq/synapse/issues/17256
This looks like it is due to hitting this case (UNKNOWN_LENGTH
of response): https://github.com/H-Shay/hq_synapse/blob/fa916558056013678e88d9dc2a2f64b161d9c77f/synapse/http/matrixfederationclient.py#L1495
In their config, max_upload_size
was set to 1G and remote_media_download_burst_count
was at the default of 500M.
This would lead to the ratelimiter always rejecting any media request which didn't have a Content-Length
header.
To state the problem more clearly, any homeserver which has max_upload_size
configured higher than remote_media_download_burst_count
will always fail downloading media from any source without a Content-Length
header.
We have deployed an update to the Beeper homeserver which should make it send the Content-Length
header for downloads across federation.
hah, I came by to say it looks like Beeper deployed a fix because I'm struggling to test my changes locally 😅
Description
Images never load, and the logs are spammed with these 429 errors
Steps to reproduce
beeper.com
user to a user on a homeserver running Synapse 1.110.0rc1 or newerHomeserver
nerdhouse.io, beeper.com
Synapse Version
1.110.0
Installation Method
Docker (matrixdotorg/synapse)
Database
postgres 15
Workers
Multiple workers
Platform
Docker on Linux
Configuration
I also have the LDAP module configured
Relevant log output
Anything else that would be useful to know?
There are also occasionally also authentication errors from Beeper's media store in S3, although I'm not sure if they're related. Not posting those logs because they're full of what look like keys