bug: preview_url is returning broken images #2304

Closed
opened 2026-09-30 13:00:51 +00:00 by f0rest · 3 comments

What is the bug?

C10y is not returning any images when fetching images. Here's a capture:

{
  "url": "https://bsky.app/profile/asie.pl/post/3mwpong4gkc2h",
  "title": "asie (@asie.pl)",
  "description": "the two social media feeds on sale for the autumn 2026 season are \"AI (complimentary)\" and \"AI (derogatory)\". looking for \"not AI\"? unfortunately, that option was discontinued in mid-2026 due to low customer demand. we apologize for the inconvenience.",
  "site_name": null,
  "image": "mxc://deep.f0rest.net/rqyuTzBJuRef4DL8jtgJVB0J74MovaU0",
  "image_mime": null,
  "image_width": null,
  "image_height": null
}

image

This appears to happen for every link. This probably means this is going to be hard to reproduce.

Steps to reproduce

  1. Send embed that would have an image
  2. Observe broken image

Server name and version

self hosted (deep.f0rest.net) v26.9.1

Additional context

No response

### What is the bug? C10y is not returning any images when fetching images. Here's a capture: ```json { "url": "https://bsky.app/profile/asie.pl/post/3mwpong4gkc2h", "title": "asie (@asie.pl)", "description": "the two social media feeds on sale for the autumn 2026 season are \"AI (complimentary)\" and \"AI (derogatory)\". looking for \"not AI\"? unfortunately, that option was discontinued in mid-2026 due to low customer demand. we apologize for the inconvenience.", "site_name": null, "image": "mxc://deep.f0rest.net/rqyuTzBJuRef4DL8jtgJVB0J74MovaU0", "image_mime": null, "image_width": null, "image_height": null } ``` ![image](/attachments/886a6957-0909-435d-ae98-253abd32ac4c) This appears to happen for every link. This probably means this is going to be hard to reproduce. ### Steps to reproduce 1. Send embed that would have an image 2. Observe broken image ### Server name and version self hosted (deep.f0rest.net) v26.9.1 ### Additional context _No response_
Author

happy to test any builds if needed that may fix this

happy to test any builds if needed that may fix this
Owner

Cannot repro (v26.9.1 @ 684820c7c1):

 nex@fedora  ~  curl -H 'Authorization: Bearer woof' https://matrix.nexy7574.co.uk/_matrix/client/v1/media/preview_url\?url\=https://bsky.app/profile/asie.pl/post/3mwpong4gkc2h | jq
  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                 Dload  Upload  Total   Spent   Left   Speed
100    417   0    417   0      0   5312      0                              0
{
  "og:title": "asie (@asie.pl)",
  "og:description": "the two social media feeds on sale for the autumn 2026 season are \"AI (complimentary)\" and \"AI (derogatory)\". looking for \"not AI\"? unfortunately, that option was discontinued in mid-2026 due to low customer demand. we apologize for the inconvenience.",
  "og:image": "mxc://nexy7574.co.uk/fSrrceKxYCXTlB6we8tuca1lYsB2mcPz",
  "og:image:width": 128,
  "og:image:height": 128
}
 nex@fedora  ~  curl -H 'Authorization: Bearer woof' -i https://matrix.nexy7574.co.uk/_matrix/client/v1/media/download/nexy7574.co.uk/fSrrceKxYCXTlB6we8tuca1lYsB2mcPz
HTTP/2 200 
access-control-allow-origin: *
alt-svc: h3=":443"; ma=2592000
content-disposition: attachment
content-security-policy: default-src 'none';frame-ancestors 'none';form-action 'none';base-uri 'none';sandbox
content-type: 
date: Wed, 30 Sep 2026 14:37:27 GMT
origin-agent-cluster: ?1
permissions-policy: interest-cohort=(),browsing-topics=()
strict-transport-security: max-age=31536000; includeSubDomains; preload
vary: accept-encoding
via: 2.0 Caddy
x-content-type-options: nosniff
x-frame-options: DENY
x-xss-protection: 0

<binary content>
Cannot repro (v26.9.1 @ 684820c7c1438eb3035faee8a33eb8eb7f83968c): ``` nex@fedora  ~  curl -H 'Authorization: Bearer woof' https://matrix.nexy7574.co.uk/_matrix/client/v1/media/preview_url\?url\=https://bsky.app/profile/asie.pl/post/3mwpong4gkc2h | jq % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 417 0 417 0 0 5312 0 0 { "og:title": "asie (@asie.pl)", "og:description": "the two social media feeds on sale for the autumn 2026 season are \"AI (complimentary)\" and \"AI (derogatory)\". looking for \"not AI\"? unfortunately, that option was discontinued in mid-2026 due to low customer demand. we apologize for the inconvenience.", "og:image": "mxc://nexy7574.co.uk/fSrrceKxYCXTlB6we8tuca1lYsB2mcPz", "og:image:width": 128, "og:image:height": 128 } nex@fedora  ~  curl -H 'Authorization: Bearer woof' -i https://matrix.nexy7574.co.uk/_matrix/client/v1/media/download/nexy7574.co.uk/fSrrceKxYCXTlB6we8tuca1lYsB2mcPz HTTP/2 200 access-control-allow-origin: * alt-svc: h3=":443"; ma=2592000 content-disposition: attachment content-security-policy: default-src 'none';frame-ancestors 'none';form-action 'none';base-uri 'none';sandbox content-type: date: Wed, 30 Sep 2026 14:37:27 GMT origin-agent-cluster: ?1 permissions-policy: interest-cohort=(),browsing-topics=() strict-transport-security: max-age=31536000; includeSubDomains; preload vary: accept-encoding via: 2.0 Caddy x-content-type-options: nosniff x-frame-options: DENY x-xss-protection: 0 <binary content> ```
Contributor

@nex wrote in #2304 (comment):

Cannot repro (v26.9.1 @ 684820c7c1):

 nex@fedora  ~  curl -H 'Authorization: Bearer woof' https://matrix.nexy7574.co.uk/_matrix/client/v1/media/preview_url\?url\=https://bsky.app/profile/asie.pl/post/3mwpong4gkc2h | jq
  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                 Dload  Upload  Total   Spent   Left   Speed
100    417   0    417   0      0   5312      0                              0
{
  "og:title": "asie (@asie.pl)",
  "og:description": "the two social media feeds on sale for the autumn 2026 season are \"AI (complimentary)\" and \"AI (derogatory)\". looking for \"not AI\"? unfortunately, that option was discontinued in mid-2026 due to low customer demand. we apologize for the inconvenience.",
  "og:image": "mxc://nexy7574.co.uk/fSrrceKxYCXTlB6we8tuca1lYsB2mcPz",
  "og:image:width": 128,
  "og:image:height": 128
}
 nex@fedora  ~  curl -H 'Authorization: Bearer woof' -i https://matrix.nexy7574.co.uk/_matrix/client/v1/media/download/nexy7574.co.uk/fSrrceKxYCXTlB6we8tuca1lYsB2mcPz
HTTP/2 200 
access-control-allow-origin: *
alt-svc: h3=":443"; ma=2592000
content-disposition: attachment
content-security-policy: default-src 'none';frame-ancestors 'none';form-action 'none';base-uri 'none';sandbox
content-type: 
date: Wed, 30 Sep 2026 14:37:27 GMT
origin-agent-cluster: ?1
permissions-policy: interest-cohort=(),browsing-topics=()
strict-transport-security: max-age=31536000; includeSubDomains; preload
vary: accept-encoding
via: 2.0 Caddy
x-content-type-options: nosniff
x-frame-options: DENY
x-xss-protection: 0

<binary content>

woof is not a valid berear token i understand why you cannot reproduce

i see that there mime are discarded and unsuccessful image are being download

@nex wrote in https://forgejo.ellis.link/continuwuation/continuwuity/issues/2304#issuecomment-36568: > Cannot repro (v26.9.1 @ [`684820c7c1`](/continuwuation/continuwuity/commit/684820c7c1438eb3035faee8a33eb8eb7f83968c)): > > ```text > nex@fedora  ~  curl -H 'Authorization: Bearer woof' https://matrix.nexy7574.co.uk/_matrix/client/v1/media/preview_url\?url\=https://bsky.app/profile/asie.pl/post/3mwpong4gkc2h | jq > % Total % Received % Xferd Average Speed Time Time Time Current > Dload Upload Total Spent Left Speed > 100 417 0 417 0 0 5312 0 0 > { > "og:title": "asie (@asie.pl)", > "og:description": "the two social media feeds on sale for the autumn 2026 season are \"AI (complimentary)\" and \"AI (derogatory)\". looking for \"not AI\"? unfortunately, that option was discontinued in mid-2026 due to low customer demand. we apologize for the inconvenience.", > "og:image": "mxc://nexy7574.co.uk/fSrrceKxYCXTlB6we8tuca1lYsB2mcPz", > "og:image:width": 128, > "og:image:height": 128 > } > nex@fedora  ~  curl -H 'Authorization: Bearer woof' -i https://matrix.nexy7574.co.uk/_matrix/client/v1/media/download/nexy7574.co.uk/fSrrceKxYCXTlB6we8tuca1lYsB2mcPz > HTTP/2 200 > access-control-allow-origin: * > alt-svc: h3=":443"; ma=2592000 > content-disposition: attachment > content-security-policy: default-src 'none';frame-ancestors 'none';form-action 'none';base-uri 'none';sandbox > content-type: > date: Wed, 30 Sep 2026 14:37:27 GMT > origin-agent-cluster: ?1 > permissions-policy: interest-cohort=(),browsing-topics=() > strict-transport-security: max-age=31536000; includeSubDomains; preload > vary: accept-encoding > via: 2.0 Caddy > x-content-type-options: nosniff > x-frame-options: DENY > x-xss-protection: 0 > > <binary content> > ``` woof is not a valid berear token i understand why you cannot reproduce i see that there mime are discarded and unsuccessful image are being download
Sign in to join this conversation.
No milestone
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#2304
No description provided.