matrix.to links don't show images #966

Open
opened 2025-08-31 14:30:32 +00:00 by pinguin · 3 comments

If one clicks on a matrix.to link, the image doesnt load, see for example my profile.
I'm using firefox, which says "NS_BINDING_ABORTED" (but curl is also unhappy as it returns {"errcode":"M_INVALID_PARAM","error":"Query parameter width must be an integer"}).

If one clicks on a matrix.to link, the image doesnt load, see for example [my profile](https://matrix.to/#/@pinguin:pngn.cc). I'm using firefox, which says "NS_BINDING_ABORTED" (but curl is also unhappy as it returns `{"errcode":"M_INVALID_PARAM","error":"Query parameter width must be an integer"}`).
Owner

Interesting, given that this is trying to request the image via a Synapse server - https://matrix-client.matrix.org/_matrix/media/r0/thumbnail/pngn.cc/FYQCHT95bsd9zN9ce2UJTXlACrNnNp8S?width=64&height=64&method=crop is giving:

curl 'https://matrix-client.matrix.org/_matrix/media/r0/thumbnail/pngn.cc/FYQCHT95bsd9zN9ce2UJTXlACrNnNp8S?width=64&height=64&method=crop' \
  --compressed \
  -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:142.0) Gecko/20100101 Firefox/142.0' \
  -H 'Accept: image/avif,image/webp,image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5' \
  -H 'Accept-Language: en-GB,en;q=0.5' \
  -H 'Accept-Encoding: gzip, deflate' \
  -H 'Referer: https://matrix.to/' \
  -H 'Connection: keep-alive' \
  -H 'Sec-Fetch-Dest: image' \
  -H 'Sec-Fetch-Mode: no-cors' \
  -H 'Sec-Fetch-Site: cross-site' \
  -H 'Priority: u=5, i' \
  -H 'TE: trailers'
{"errcode":"M_NOT_FOUND","error":"Not found"}%
Interesting, given that this is trying to request the image via a Synapse server - `https://matrix-client.matrix.org/_matrix/media/r0/thumbnail/pngn.cc/FYQCHT95bsd9zN9ce2UJTXlACrNnNp8S?width=64&height=64&method=crop` is giving: ``` curl 'https://matrix-client.matrix.org/_matrix/media/r0/thumbnail/pngn.cc/FYQCHT95bsd9zN9ce2UJTXlACrNnNp8S?width=64&height=64&method=crop' \ --compressed \ -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:142.0) Gecko/20100101 Firefox/142.0' \ -H 'Accept: image/avif,image/webp,image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5' \ -H 'Accept-Language: en-GB,en;q=0.5' \ -H 'Accept-Encoding: gzip, deflate' \ -H 'Referer: https://matrix.to/' \ -H 'Connection: keep-alive' \ -H 'Sec-Fetch-Dest: image' \ -H 'Sec-Fetch-Mode: no-cors' \ -H 'Sec-Fetch-Site: cross-site' \ -H 'Priority: u=5, i' \ -H 'TE: trailers' {"errcode":"M_NOT_FOUND","error":"Not found"}% ```
Owner

May be to do with unauthenticated media being disabled - if you tell matrix.to to go via a continuwuity server, you get a 403

May be to do with unauthenticated media being disabled - if you tell matrix.to to go via a continuwuity server, you get a 403
Owner

matrix.to's media doesn't work after authenticated media was introduced, https://github.com/matrix-org/matrix.to/issues/351

That error sounds... erroneous though, more like a malformed request than anything.

Regardless, I visited the matrix.to link you sent and changed my preview server to one with unauthenticated media enabled, and it loaded fine: https://matrix.transgender.ing/_matrix/media/r0/thumbnail/pngn.cc/FYQCHT95bsd9zN9ce2UJTXlACrNnNp8S?width=64&height=64&method=crop.

matrix.to's media doesn't work after authenticated media was introduced, https://github.com/matrix-org/matrix.to/issues/351 That error sounds... erroneous though, more like a malformed request than anything. Regardless, I visited the matrix.to link you sent and changed my preview server to one with unauthenticated media enabled, and it loaded fine: https://matrix.transgender.ing/_matrix/media/r0/thumbnail/pngn.cc/FYQCHT95bsd9zN9ce2UJTXlACrNnNp8S?width=64&height=64&method=crop.
Sign in to join this conversation.
No milestone
No project
No assignees
3 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: continuwuation/continuwuity#966
No description provided.