-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
No preview for some URLs #15142
Comments
I don't understand what the issue is here? Is it a particular URL that isn't previewing? (If so, please provide the URL.) The linked issue mentions something about the |
The log line was very long, it seems the error is:
Still it isn't clear -- does this always happen with this specific URL? If there are exactly 3 URLs? |
In fact I can't check all links for preview. While it the 1st URL in my collection. No preview for this URL ( |
Pulling the logs from that it seems to be:
The first log line is interesting though -- it seems we're rejecting it due to the content type. This comes from: synapse/synapse/http/client.py Lines 752 to 761 in d0fed7a
We call that via: synapse/synapse/rest/media/v1/preview_url_resource.py Lines 469 to 483 in 682151a
This all hinges on the synapse/synapse/rest/media/v1/preview_url_resource.py Lines 852 to 871 in 682151a
The tl;dr is that for some (?) requests to this URL we're getting back a content type of We should be passing back the proper headers with this error though, I think? But realistically it is still an error response. |
No preview for URLs that do not exist (404 error). It means when this issue will be resolved we can see a difference between good and others links. This is the practice, UX effect. |
The spec for previews provides no way to give error information back like that, and I think clients would still just not show a preview. I'm not sure there's any action for the Synapse team to take here. (We should fix the |
Description
Could you move this issue?
element-hq/element-web#24626
Steps to reproduce
Another URLs without preview:
https://twitter.com/dshevchenko_biz/status/943829211957092353
Homeserver
matrix.org
Synapse Version
matrix.org
Installation Method
I don't know
Database
matrix.org
Workers
I don't know
Platform
matrix.org
Configuration
No response
Relevant log output
Anything else that would be useful to know?
Matrix.org is homeserver for room and user, and me.
The text was updated successfully, but these errors were encountered: