Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL previews image 404 error #18022

Closed
skibbipl opened this issue Dec 10, 2024 · 3 comments
Closed

URL previews image 404 error #18022

skibbipl opened this issue Dec 10, 2024 · 3 comments

Comments

@skibbipl
Copy link

skibbipl commented Dec 10, 2024

Description

Since few versions of synapse server URL previews are not displaying images.

Steps to reproduce

Paste URL into chat.

Homeserver

my own self hosted

Synapse Version

1.120.2

Installation Method

Docker (matrixdotorg/synapse)

Database

PostgreSQL

Workers

Single process

Platform

Debian testing proxmox VM with official docker packages behind haproxy.

Configuration

Nothing special, just disabling local IPs blacklist:

url_preview_enabled: true
url_preview_ip_range_blacklist:
  - '127.0.0.0/8'
  - '10.0.0.0/8'
  - '172.16.0.0/12'
  #- '192.168.0.0/16'
  - '100.64.0.0/10'
  - '169.254.0.0/16'
  - '::1/128'
  - 'fe80::/64'
  - 'fc00::/7'

Relevant log output

2024-12-10 10:11:06,313 - synapse.media.url_previewer - 689 - WARNING - GET-20431 - Couldn't get dims for https://matrix-org.github.io/synapse/latest/favicon.svg
2024-12-10 10:11:06,319 - synapse.access.http.8008 - 508 - INFO - GET-20431 - 192.168.1.5 - 8008 - {@user:homserver.url} Processed request: 0.433sec/-0.000sec (0.005sec, 0.001sec) (0.001sec/0.019sec/4) 325B 200 "GET /_matrix/media/r0/preview_url?url=https%3A%2F%2Fmatrix-org.github.io%2Fsynapse%2Flatest%2Freverse_proxy.html&ts=1733825460000 HTTP/1.1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0" [0 dbevts]
2024-12-10 10:11:06,416 - synapse.http.server - 130 - INFO - GET-20436 - <XForwardedForRequest at 0x7fa759367140 method='GET' uri='/_matrix/media/r0/thumbnail/[homeserver.url]/2024-12-10_iNXcalyleUDDwSGt?width=100&height=100&method=scale' clientproto='HTTP/1.1' site='8008'> SynapseError: 404 - Not found

Anything else that would be useful to know?

Definitely it worked few weeks ago. I use schildi.chat as client. The preview currently looks like this:
image

@clokep
Copy link
Contributor

clokep commented Dec 10, 2024

Looks like it is trying to preview an SVG which is #1309.

@skibbipl
Copy link
Author

I'm not really sure if it's related to svg. Here is another example:

2024-12-10 15:59:44,826 - synapse.http.client - 441 - INFO - GET-45084 - Received response to GET https://www.google.com/: 200
2024-12-10 15:59:44,866 - synapse.http.client - 441 - INFO - GET-45084 - Received response to GET https://www.google.com/images/branding/googleg/1x/googleg_standard_color_128dp.png: 200
2024-12-10 15:59:44,889 - synapse.access.http.8008 - 508 - INFO - GET-45084 - 192.168.1.5 - 8008 - {@user:homeserver.url} Processed request: 0.196sec/-0.000sec (0.006sec, 0.001sec) (0.001sec/0.021sec/7) 445B 200 "GET /_matrix/media/r0/preview_url?url=https%3A%2F%2Fwww.google.com%2F&ts=1733846340000 HTTP/1.1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0" [0 dbevts]
2024-12-10 15:59:45,001 - synapse.http.server - 130 - INFO - GET-45088 - <XForwardedForRequest at 0x7fa759cef3e0 method='GET' uri='/_matrix/media/r0/thumbnail/[homeserver.url]/2024-12-10_BOjvrqfKDlKjCmbB?width=100&height=100&method=scale' clientproto='HTTP/1.1' site='8008'> SynapseError: 404 - Not found

@skibbipl
Copy link
Author

OK, I tested it with element.io and previews are visible. So i guess it's schildi chat issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants