Title: Invalid Document
Last modified: May 5, 2017

---

# Invalid Document

 *  Resolved [engearment](https://wordpress.org/support/users/engearment/)
 * (@engearment)
 * [9 years ago](https://wordpress.org/support/topic/invalid-document/)
 * Hi folks –
 * Getting the following error code:
 * There has been an error with the API: INVALID_DOCUMENT – The URL, [https://player.
   vimeo.com/video/], is invalid. Please see documentation for more details about
   embedded video. (keyPath components->2->components->17)
 * It should make sense, except it only happens when I put an Amazon “image and 
   text” affiliate link in a post, which, as far as I can tell, has absolutely nothing
   to do with Vimeo. There are no Vimeo links on the post. There is no mention of
   Vimeo – I checked the page source code. I do not get the error if there are no
   Amazon links.
 * Thoughts? Need more info? Thanks in advance
    -  This topic was modified 9 years ago by [engearment](https://wordpress.org/support/users/engearment/).

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Bradford Campeau-Laurion](https://wordpress.org/support/users/potatomaster/)
 * (@potatomaster)
 * [9 years ago](https://wordpress.org/support/topic/invalid-document/#post-9105419)
 * Can you please provide the JSON for this article by going to the Apple News list
   in the WordPress dashboard and clicking “Download” for the post in question? 
   Please copy and paste the contents of this file into [pastebin](https://pastebin.com/)
   and provide a link to that here.
 * Can you also do the same for the contents of the “Text” tab in the WordPress 
   editor for that same post?
 * Thanks.
 *  Thread Starter [engearment](https://wordpress.org/support/users/engearment/)
 * (@engearment)
 * [9 years ago](https://wordpress.org/support/topic/invalid-document/#post-9113841)
 * JSON – [https://pastebin.com/GXqPYyKM](https://pastebin.com/GXqPYyKM)
    Post html–
   [https://pastebin.com/7gDcg4fy](https://pastebin.com/7gDcg4fy)
 * Thanks!
 *  Plugin Author [Kevin Fodness](https://wordpress.org/support/users/kevinfodness/)
 * (@kevinfodness)
 * [9 years ago](https://wordpress.org/support/topic/invalid-document/#post-9122159)
 * Congratulations! You found a bug!
 * The logic for embedded web video falls back to Vimeo if it encounters an iframe
   and doesn’t have another handler, where it should actually skip the component
   entirely.
 * I’m going to close this issue here in favor of tracking it in GitHub: [https://github.com/alleyinteractive/apple-news/issues/371](https://github.com/alleyinteractive/apple-news/issues/371)
 *  [joshuanapper](https://wordpress.org/support/users/joshuanapper/)
 * (@joshuanapper)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/invalid-document/#post-9358957)
 * Hey Ya’ll, I am getting much of a similar issue for my end. Any fix on this? 
   🙂
 * Here was I sent apple on request but resulted in me being sent to this link.
 * ***Tittle1***
    Kansas City Underwater After Heavy Rains
 * <iframe style=”border: none; overflow: hidden;” src=”[https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2Fkshbtv%2Fvideos%2F10154719547091190%2F&show_text=0&width=560&#8243](https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2Fkshbtv%2Fvideos%2F10154719547091190%2F&show_text=0&width=560&#8243);
   width=”560″ height=”315″ frameborder=”0″ scrolling=”no” allowfullscreen=”allowfullscreen”
   ></iframe>
 * Error Message
    THERE HAS BEEN AN ERROR WITH THE API: INVALID_DOCUMENT – THE URL,[
   HTTPS://PLAYER.VIMEO.COM/VIDEO/], IS INVALID. PLEASE SEE DOCUMENTATION FOR MORE
   DETAILS ABOUT EMBEDDED VIDEO. (KEYPATH COMPONENTS->1->COMPONENTS->4)
 * ***Tittle2***
    Developing: Possible Tornado Destroys Homes On Maryland’s Kent
   Island As Storm Leaves Thousands Without Power
 * <iframe src=”//www.washingtonpost.com/video/c/embed/98f358d4-706a-11e7-8c17-533c52b2f014″
   width=”480″ height=”290″ frameborder=”0″ scrolling=”no” allowfullscreen=”allowfullscreen”
   ></iframe>
 * Error Message
    THERE HAS BEEN AN ERROR WITH THE API: INVALID_DOCUMENT – THE URL,[
   HTTPS://PLAYER.VIMEO.COM/VIDEO/], IS INVALID. PLEASE SEE DOCUMENTATION FOR MORE
   DETAILS ABOUT EMBEDDED VIDEO. (KEYPATH COMPONENTS->1->COMPONENTS->3)
 * ***Tittle3***
    BREAKING NEWS: St. Louis Jail Will Add Portable A/C Units Following
   Viral Video Of Inmates “Screaming”
 * <iframe style=”border: none; overflow: hidden;” src=”[https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2Fattn%2Fvideos%2F1446622468706541%2F&show_text=0&width=400&#8243](https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2Fattn%2Fvideos%2F1446622468706541%2F&show_text=0&width=400&#8243);
   width=”400″ height=”400″ frameborder=”0″ scrolling=”no” allowfullscreen=”allowfullscreen”
   ></iframe>
 * Error Message
    THERE HAS BEEN AN ERROR WITH THE API: INVALID_DOCUMENT – THE URL,[
   HTTPS://PLAYER.VIMEO.COM/VIDEO/], IS INVALID. PLEASE SEE DOCUMENTATION FOR MORE
   DETAILS ABOUT EMBEDDED VIDEO. (KEYPATH COMPONENTS->1->COMPONENTS->6)
 *  [PPNSteve](https://wordpress.org/support/users/ppnsteve/)
 * (@ppnsteve)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/invalid-document/#post-9561011)
 * seeing this issue with a twitch video embed as well.. any solution yet?

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Invalid Document’ is closed to new replies.

 * ![](https://ps.w.org/publish-to-apple-news/assets/icon-256x256.png?rev=3017580)
 * [Publish To Apple News](https://wordpress.org/plugins/publish-to-apple-news/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/publish-to-apple-news/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/publish-to-apple-news/)
 * [Active Topics](https://wordpress.org/support/plugin/publish-to-apple-news/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/publish-to-apple-news/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/publish-to-apple-news/reviews/)

## Tags

 * [amazon](https://wordpress.org/support/topic-tag/amazon/)
 * [API error](https://wordpress.org/support/topic-tag/api-error/)
 * [Invalid Document](https://wordpress.org/support/topic-tag/invalid-document/)
 * [Twitch](https://wordpress.org/support/topic-tag/twitch/)
 * [vimeo](https://wordpress.org/support/topic-tag/vimeo/)

 * 5 replies
 * 5 participants
 * Last reply from: [PPNSteve](https://wordpress.org/support/users/ppnsteve/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/invalid-document/#post-9561011)
 * Status: resolved