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

No preview generated for YouTube links #28526

Open
paulchen opened this issue Mar 21, 2023 · 4 comments
Open

No preview generated for YouTube links #28526

paulchen opened this issue Mar 21, 2023 · 4 comments

Comments

@paulchen
Copy link

Description:

For certain YouTube links, no preview is shown.

Steps to reproduce:

  1. Write a message that only contains the link https://www.youtube.com/watch?v=f4yXBIigZbg

Expected behavior:

The message is shown together with a preview for the given link.

Actual behavior:

No preview is shown:

image

(the second link is already the next message)

Server Setup Information:

  • Version of Rocket.Chat Server: 6.0.0
  • Deployment Method: Docker
  • Number of Running Instances: 1
  • MongoDB Version: 6.0.5

Client Setup Information

This behaviour is client agnostic. It can be reproduced in a browser, in the Electron client, and in the Android app.

Additional context

Most YouTube links are not affected by this problem. However, there are some YouTube links in addition to the one above that show the same behaviour, e.g.:

I was unable to determine a pattern.

Discord shows a preview:

image

However, Slack does not:

image

I also checked the link using Facebook's Sharing Debugger to ensure the OpenGraph information is present and can be extracted:

image

Additionally, I also verified the page using https://www.opengraph.xyz/ which also worked:

image

@albetros24
Copy link

Kindly allow me to work on this issue

@hugocostadev
Copy link
Contributor

@albetros24 you don't need to ask to work in a issue, feel free to get it

@CulturalProfessor
Copy link

CulturalProfessor commented Apr 7, 2023

Hey @hugocostadev I tried to log the content of the provided url in the issue and the body of it was unauthorized,that may be the issue why preview is not visible.It doesn't happens with other urls.

Screenshot from 2023-04-07 10-47-52
Path:apps/meteor/app/oembed/server.ts/getUrlMeta
Screenshot from 2023-04-07 10-50-40

@singatias
Copy link

This is still a problem, any plans on fixing it?

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

No branches or pull requests

5 participants