From Dev.to
Fix 'Updating Failed' Invalid JSON in WordPress
“Updating failed. The response is not a valid JSON response.” means the block editor sent a POST to /wp-json/wp/v2/posts/ and the reply would not parse as JSON. Something answered with HTML, a redirec...
