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

403 Error for YouTube links #115

Open
newpen opened this issue Jan 10, 2021 · 17 comments
Open

403 Error for YouTube links #115

newpen opened this issue Jan 10, 2021 · 17 comments

Comments

@newpen
Copy link

newpen commented Jan 10, 2021

For example:
https://noembed.com/embed?callback=%3Cesi%3Ainclude%20src%3D%22%2Fesi%2Fjsonp-callback%22%2F%3E&url=https://www.youtube.com/watch?v=G68Q4lCM5pQ

@komlenic
Copy link

komlenic commented Jan 10, 2021

Same issue. All youtube links return 403 and cannot be embedded. Chrome, at least, goes into some kind of redirect loop where it keeps submitting the request repeatedly.

Removing the callback parameter from the request "solves" this, in that a non-403 response is returned. However, that doesn't really solve the issue.

@momoko8443
Copy link

same issue!

@gummyfrog
Copy link
Contributor

ditto. doesn't look like an issue with the provider template– maybe a youtube deprecation? still works fine for most older videos.

@aariacarterweir
Copy link

Some youtube urls are still working. Cached?

@bettysteger
Copy link

image

got the same error when calling the URL in the browser directly, when trying to fetch via JSONP, i got an 200, but the embed does not work anymore... :/

I think youtube changed something!

@aariacarterweir
Copy link

aariacarterweir commented Jan 11, 2021

This was a bit of a wig out for me so I quickly pulled together this docker image based on iframely, who kindly release their software as open source. They actually have a Dockerfile in their repo that is pretty much ready to go but theirs is based on node 12 which doesn't work so great with http 2. That and I wanted something a bit more portable that cloned their repo into the actual docker image.

https://hub.docker.com/repository/docker/aariacarterweir/docker-iframely

Won't be a solution for everyone but works pretty well for me. Only thing I'd say is you reallllly gotta run it with redis or memcached so you dont hit your API limits.

If anyone wants more info on how to set this bad boy up just ping me, I'd be happy to share a few pointers.

@nicolochiellini
Copy link

Youtube like Vimeo now ask an API key

@gummyfrog
Copy link
Contributor

Fixed on local install by installing Mozilla::CA and explicitly using HTTPS for YouTube URLs.

Here is the full error hiding behind 403 Forbidden:
{ "error": { "code": 403, "message": "SSL is required to perform this operation.", "status": "PERMISSION_DENIED" } }

@gummyfrog
Copy link
Contributor

gummyfrog commented Jan 11, 2021

Seems like &scheme isn't cutting it anymore.

http://www.youtube.com/oembed/?url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DcVRyoUJyxIE&scheme=https (generated by Providers/YouTube.pm) still uses HTTP, giving us 403.

No API key required– free quota is still just fine with caching :) I'm not super familiar with Perl, so there might be a cleaner way to fix it than changing YouTube.pm 18: my $uri = URI->new("http://www.youtube.com/oembed/"); to YouTube.pm 18: my $uri = URI->new("https://www.youtube.com/oembed/"); (actually, this does seem like the cleanest way...)

Happy embedding 👍

@komlenic
Copy link

I know this github project is essentially abandoned, but does anyone know if noembed.com is ever updated? A lot of sites are relying on that service and have broken youtube embeds right now.

@flipmcf
Copy link

flipmcf commented Jan 12, 2021

look at #114 - we might have to follow what @tomgross has done.

@eduardopiasson-br
Copy link

A temporary solution can be this, incorporates the video, the rest depends on your application.

I replaced the "https://noembed.com/embed?nowrap=on" with "https://www.youtube.com/oembed?" in the proxy configuration of the trumbowyg api.

the others that use noembed I believe it is almost the same situation.

Captura de tela 2021-01-13 103603

Hope this helps.

@bettysteger
Copy link

@eduardopiasson-br the problem with this is, that i would need JSONP and youtube doesn't support that :/

@eduardopiasson-br
Copy link

eduardopiasson-br commented Jan 13, 2021

@lpsBetty Even if you pass the format to the end of the link?

Example: https://www.youtube.com/oembed?url=https://www.youtube.com/watch?v=IJ5DWUu-MlE&format=json

@bettysteger
Copy link

@eduardopiasson-br yes if you click the link you see that you do not have a callback function in the code - i would need to define a callback function for CKEDITOR...

@theuros
Copy link

theuros commented Jan 21, 2021

I noticed that for youtube videos which gives 403 error you can use embed url to make it work. Youtube link is like https://www.youtube.com/watch?v=.... and if you click "share" and copy given url https://youtu.be/... then embed works almost fine. Embeded video height is too small

@dlopez-akalam
Copy link

We where facing the same problem, but It looks like youtube embed codes are working again. The examples on this issue and in our site are working back.

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