Title: API Error : INVALID_DOCUMENT
Last modified: February 15, 2017

---

# API Error : INVALID_DOCUMENT

 *  Resolved [samblis](https://wordpress.org/support/users/samblis/)
 * (@samblis)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/api-error-invalid_document/)
 * I have been trying for months to fix this error I get everytime I try to publish
   with the app.
 * There has been an error with the API:
    INVALID_DOCUMENT – Unsupported resource
   with URL=/wp-content/uploads/2017/02/NBC-This-Is-Us-AboutImage-1920×1080-KO.jpg(
   keyPath components->0->components->0->URL) INVALID_DOCUMENT – Unsupported resource
   with URL=/wp-content/uploads/2017/02/NBC-This-Is-Us-AboutImage-1920×1080-KO.jpg(
   keyPath metadata->thumbnailURL)
 * I have disabled every single app and still get the error. I spoke to my host 
   company and they tell me they do not remove the URl from the code.
 * I have two sites and get the same error on both sites. The one similarity is 
   both sites use Cherry Framework.
 * Is there any way to hard code the URL in rather than have it try to find it and
   have this error every time?

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

 *  Plugin Author [Kevin Fodness](https://wordpress.org/support/users/kevinfodness/)
 * (@kevinfodness)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/api-error-invalid_document/#post-8809407)
 * Hi [@samblis](https://wordpress.org/support/users/samblis/)—
 * Thanks for the issue report.
 * It appears that the framework is making the asset URLs relative rather than absolute(
   which is the default WordPress behavior). We can add support for relative asset
   URLs, which we are already doing for relative links.
 * I have opened a GitHub issue to track progress on this: [https://github.com/alleyinteractive/apple-news/issues/316](https://github.com/alleyinteractive/apple-news/issues/316)
    -  This reply was modified 9 years, 3 months ago by [Kevin Fodness](https://wordpress.org/support/users/kevinfodness/).
 *  Plugin Author [Kevin Fodness](https://wordpress.org/support/users/kevinfodness/)
 * (@kevinfodness)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/api-error-invalid_document/#post-8884939)
 * Closing the issue here in favor of tracking the feature request on GitHub.

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

The topic ‘API Error : 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [Kevin Fodness](https://wordpress.org/support/users/kevinfodness/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/api-error-invalid_document/#post-8884939)
 * Status: resolved