Cannot embed content: ” The response is not a valid JSON response.”
-
Hello, and sorry for the bother.
I’ve been using v5.4.2 for a couple of days, and the embedding feature stopped working, in the middle of a post edit. Now, if I try to use the “Embed” block to add an image, YT video, Twitter post, or any type of supported content, I get a “Sorry, this content could not be embedded”, and then “Updating failed. The response is not a valid JSON response.” when trying to preview or save the post. When inspecting the element, I get a nice error: “api-fetch.js:838 GET https://arborealkey.com/wp-json/oembed/1.0/proxy?url=https%3A%2F%2Fyoutu.be%2FCwas_7H5KUs&_locale=user 503”.
The content that is already embedded is still working fine.
I tried to:
-empty caches
-check for eventual mixed content
-use the classic editor (embedding images works but the rest still doesn’t)
-reset permalinks
-disable all plugins and use the twenty-twenty theme
-test older versions of WP in my sandbox sub-domain (the embedding feature stops working from 5.0 onwards)
-use Chrome, Firefox, and Edge
-various solutions (which I can’t remember) found on forums but with no resultsI also tried everything listed in the “READ THIS FIRST WordPress 5.4 Master List” post, including the manual installation before writing this
I still can’t figure out what happened, since I wasn’t installing or updating anything when it stopped working (I refreshed the page, and BAM). I must have accidentally disabled or enabled something without knowing, but I haven’t been able to determine what.
Sorry about:
-the mediocre quality of my English
-asking what probably is a ridiculous questionHave a nice day/night
-
This topic was modified 5 years, 9 months ago by
stelmariamouise.
-
This topic was modified 5 years, 9 months ago by
-
The response is not a valid JSON error may be a lot of different things. For example:
– a plugin conflict, 1) a plugin doing something that creates output, thus breaking the response; or 2) a plugin doing something stupid with caching),
– an overloaded server,
– misconfigured http/https address in General Settings, etc.Try reviewing https://wordpress.org/support/topic/json-error-cannot-update-page-text/?view=all
If nothing helps, try Enabling debugging.
Thank you for answer.
After not working for over half a day, it now functions properly. I’ve no idea why, I haven’t done anything new since I posted here. This shall remain a mystery.
Thank you for responding anyway !
Glad it’s sorted 🙂
The topic ‘Cannot embed content: ” The response is not a valid JSON response.”’ is closed to new replies.