INVALID_DOCUMENT Error when using WordPress Post Embeds
-
It seems there is an INVALID_DOCUMENT error that prevents the post from being published or updated when there is a WordPress Post being linked/embedded.
Here is the error:
There has been an error with the Apple News API: INVALID_DOCUMENT - "URL" was "https://ashleydev.com/title-of-the-article-to-be-embeddedk/embed/#?secret=n3IxPCSAEH#?secret=F2EySfsGEl" should be valid URL with one of ["http","https","#","webcal","stocks","action","music","musics","tel","mailto"] scheme(s) (keyPath components->1->components->7->components->1->additions->0->URL)
I’ve exported the json file and looking at the output. It looks like the plugin is grabbing the embed url created by WordPress, instead of the actual url of the post it should be linking to.
Here is the json snippet:
{ "layout": "embed-generic-layout", "role": "container", "components": [ { "role": "heading2", "text": "“Title of the article to be embedded—", "format": "html" }, { "role": "body", "text": "<a href=\"https://ashleydev.com/title-of-the-article-to-be-embedded/embed/#?secret=n3IxPCSAEH#?secret=F2EySfsGEl\">View on the original site.</a>", "format": "html", "textStyle": { "fontSize": 14 } } ] },
Is there a fix for this?
- The topic ‘INVALID_DOCUMENT Error when using WordPress Post Embeds’ is closed to new replies.