Open nishanthkarthik opened 1 month ago
I did discover this in nheko originally. The root cause appears to be how mtxclient handles downloads
Possibly related to a70753812e3fb832df12b24ee0ee6c70d68060d5?
I think you may have added the redirect support to the wrong endpoint? Is your server using the new or the old style urls? I.e. /media/v3 or /client/v1/media?
It's /media/v3
used by beeper's fork of synapse https://github.com/beeper/synapse. This redirects to an S3 bucket.
Let me know how I can help! I can get more debugging info if you're interested (full urls, debug logs from nheko)
` QML QQuickImage: Failed to download image: (qrc:/resources/qml/delegates/ImageMessage.qml:112, )
`
https://github.com/Nheko-Reborn/mtxclient/blob/a0b203980491ddf2e2fe4f1cd6af8c2562b3ee35/lib/http/client.cpp#L840
Sometimes the matrix image urls are redirects to S3 buckets elsewhere so this callback above needs to follow redirects.
When I explicitly handle http code 307 by making another get request to the
location
header, it works as expected.I'm certain there's a better way of doing this but simply setting
num_redirects
to 10 in the top levelget
did not work. I did not look into why.Thanks