Closed ghuntley closed 4 years ago
Do other YouTube shortcodes work or are they all returning 401?
Interesting - confirmed it looks like it’s just this one video (or rather something about it that might also be true for other videos but not all). The oEmbed endpoint is definitely returning a 401: https://www.youtube.com/oembed?url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DYKC78xdtt4E&noapp=1
I’ll dig deeper and see if I can figure out what’s going on.
I'll just use the IFrame code for now. Thx as always Dave.
This looks like a known problem with YouTube for certain videos: https://core.trac.wordpress.org/ticket/14377 https://stackoverflow.com/questions/5654691/why-isnt-oembed-showing-the-youtube-video https://github.com/humhub/humhub/issues/2501
It's possibly due to a video being marked as "unembeddable" but that's not totally clear. In any case, I'm going to close this as NMP (not my problem). I think returning an error is the correct result (as opposed to some sort of fallback) - if the expected embed doesn't render, it's something that should be corrected.
This video https://www.youtube.com/watch?v=YKC78xdtt4E as
Results in