Giter Site home page Giter Site logo

403 Error for YouTube links about noembed HOT 17 OPEN

newpen avatar newpen commented on September 28, 2024 8
403 Error for YouTube links

from noembed.

Comments (17)

komlenic avatar komlenic commented on September 28, 2024 3

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.

from noembed.

eduardopiasson-br avatar eduardopiasson-br commented on September 28, 2024 2

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.

from noembed.

gummyfrog avatar gummyfrog commented on September 28, 2024 1

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 👍

from noembed.

bettysteger avatar bettysteger commented on September 28, 2024 1

@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...

from noembed.

momoko8443 avatar momoko8443 commented on September 28, 2024

same issue!

from noembed.

gummyfrog avatar gummyfrog commented on September 28, 2024

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

from noembed.

aariacarterweir avatar aariacarterweir commented on September 28, 2024

Some youtube urls are still working. Cached?

from noembed.

bettysteger avatar bettysteger commented on September 28, 2024

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!

from noembed.

aariacarterweir avatar aariacarterweir commented on September 28, 2024

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.

from noembed.

nicolochiellini avatar nicolochiellini commented on September 28, 2024

Youtube like Vimeo now ask an API key

from noembed.

gummyfrog avatar gummyfrog commented on September 28, 2024

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" } }

from noembed.

komlenic avatar komlenic commented on September 28, 2024

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.

from noembed.

flipmcf avatar flipmcf commented on September 28, 2024

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

from noembed.

bettysteger avatar bettysteger commented on September 28, 2024

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

from noembed.

eduardopiasson-br avatar eduardopiasson-br commented on September 28, 2024

@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

from noembed.

theuros avatar theuros commented on September 28, 2024

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

from noembed.

dlopez-akalam avatar dlopez-akalam commented on September 28, 2024

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.

from noembed.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.