-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
YouTube Embed Shows Error Message But Actually Works #1314
Comments
This would occur if there was an error in retrieving the embed result. https://github.com/WordPress/gutenberg/blob/8fd70f4/blocks/library/embed/index.js#L144 Can you look at your network tab and see what response you're receiving for the embed request? It may be a 404 if you're running a version of WordPress that does not include the oEmbed proxy endpoint (>= WordPress 4.8). |
I think you're exactly right @aduth:
|
Which version of WordPress are you running? |
Version 4.8: http://11f5306f.ngrok.io |
Your site is not serving the REST API: http://11f5306f.ngrok.io/wp-json Is this disabled, by you or your host? |
(Try enabling permalinks if they're not already enabled) |
This was the issue, the site had them set to |
@roundhill Depending on the web server, this isn't required. AFAIK this is more an issue in the web server breaking the REST API. It's not specific to Gutenberg. |
Agreed, will close here and check if there's an issue on the REST API repo. |
I was trying out Gutenberg (it's so cool! 🎉) and noticed an issue when trying to embed a YouTube video.
To Reproduce
+
and thenYouTube
in the Embeds section.https://www.youtube.com/watch?v=pdZQ98mWeto
Sorry, we could not embed that content.
:
5. Publish the post. You'll see the video in the post just fine!The text was updated successfully, but these errors were encountered: