This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Unable to add Video. Could be wp-json/Rest-Api

7 years ago · Last reply by Ali Hussain 7 years ago

While trying to add video using the standard video widget by SO, i get the following error
Sorry, we can’t load the video at the supplied URL. Please check that the URL is for a supported video file (.mp4, .m4v, .webm, .ogv, .flv) or stream (e.g. YouTube and Vimeo).

For Devs

GET http://domain/wp-json/oembed/1.0/proxy?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DeQl6Do8f9fw&discover=false 404 (Not Found)

Uncaught Error: Syntax error, unrecognized expression: {"code":"rest_no_route","message":"No route was found matching the URL and request method","data":{"status":404}}

Now i have tried enabling and disabling plugins, the issue exists.
Though with the same copy on my local, it doesn’t bring up this issue.
What could the possible problems be?

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

4
  1. Alex S Staff 7 years, 5 months ago

    Hi Ali,

    I’m not too sure why this is happening – we don’t actually use the WP Rest API with this widget. Hm. Are you using the Video Player widget or the SiteOrigin Video Player widget? The former is actually a standard WordPress widget.

  2. Ali Hussain 7 years, 3 months ago

    I found out it was a plugin blocking the oEmbed for videos :'(

  3. Alex S Staff 7 years, 3 months ago

    Hi Ali,

    I’m glad to hear you were able to get it working. Out genuine of interest, can you please clarify what plugin was blocking it? I’m sorry I wasn’t able to be of assistance this time. Please be sure to post another thread if you have any other questions.

  4. Ali Hussain 7 years, 3 months ago

    It was WP Rocket, It has an option in the backend when checked it blocks oEmbed requests on the frontend and disabled wp js that calls their video functions. Doing so also disabled embeding of twitter feed etc

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread