Title: API: INVALID_DOCUMENT
Last modified: March 20, 2017

---

# API: INVALID_DOCUMENT

 *  Resolved [Kingsley Felix](https://wordpress.org/support/users/iamkingsleyf/)
 * (@iamkingsleyf)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/api-invalid_document/)
 * Hello;
 * I am having the below error whenever i add amazon products to the article via
   shortcode. i am using the official amazon pluggin
 * **There has been an error with the API: INVALID_DOCUMENT – Missing resource [
   bundle://415MF9ZITL._SL160_.jpg]**
 * i have added the Json also. [http://pastebin.com/uYsufCyU](http://pastebin.com/uYsufCyU)

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

 *  Plugin Author [Kevin Fodness](https://wordpress.org/support/users/kevinfodness/)
 * (@kevinfodness)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/api-invalid_document/#post-8936056)
 * Hi [@iamkingsleyf](https://wordpress.org/support/users/iamkingsleyf/)—
 * It looks like it’s not able to bundle the image, which may be a restriction on
   downloading the image on Amazon’s part. Would it be possible to turn on the remote
   images setting in your Publish to Apple News settings to serve images from their
   actual URLs rather than sending the files to Apple along with the request?
 *  Thread Starter [Kingsley Felix](https://wordpress.org/support/users/iamkingsleyf/)
 * (@iamkingsleyf)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/api-invalid_document/#post-8936233)
 * hello;
 * Thanks for the reply, **how do i do that?** also i think there is an issue with
   LIST items. let me see if i can upload the screenshot from my ipad.
 * Regards
    -  This reply was modified 9 years, 1 month ago by [Kingsley Felix](https://wordpress.org/support/users/iamkingsleyf/).
 *  Plugin Author [Kevin Fodness](https://wordpress.org/support/users/kevinfodness/)
 * (@kevinfodness)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/api-invalid_document/#post-8936532)
 * Apple News > Settings, scroll down to where it says “Use remote images?” and 
   set that to Yes, then try again.
 *  Thread Starter [Kingsley Felix](https://wordpress.org/support/users/iamkingsleyf/)
 * (@iamkingsleyf)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/api-invalid_document/#post-8936658)
 * Hello;
 * Got the below error.
 * **THERE HAS BEEN AN ERROR WITH THE API: INVALID_DOCUMENT – UNABLE TO READ URI[
   HTTPS://IMAGES-NA.SSL-IMAGES-AMAZON.COM/IMAGES/I/415MF9ZITL._SL160_.JPG]**
 * The article in question
 * [https://www.healthable.org/simple-healthy-recipes-cook-toaster-oven/](https://www.healthable.org/simple-healthy-recipes-cook-toaster-oven/)
 *  Plugin Author [Kevin Fodness](https://wordpress.org/support/users/kevinfodness/)
 * (@kevinfodness)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/api-invalid_document/#post-8937362)
 * That does seem to indicate that it is a problem with the Amazon image. I’m actually
   getting a 404 when I try to load that URL in a browser, so it’s possible that
   they either removed that image, or they have a security policy in place that 
   prevents that image from loading outside of a certain context.
 * Can you confirm that you can hit the image URL directly in a browser? If you 
   can’t, there is no way the plugin or the Apple News service will be able to pull
   it.
 *  Thread Starter [Kingsley Felix](https://wordpress.org/support/users/iamkingsleyf/)
 * (@iamkingsleyf)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/api-invalid_document/#post-8940422)
 * Hello;
 * View image works [https://images-na.ssl-images-amazon.com/images/I/416WrChyPGL.jpg](https://images-na.ssl-images-amazon.com/images/I/416WrChyPGL.jpg)
 * here is the article containing the amazon products [https://www.healthable.org/life-better-genuine-hearing-aid/](https://www.healthable.org/life-better-genuine-hearing-aid/)
 *  Plugin Author [Kevin Fodness](https://wordpress.org/support/users/kevinfodness/)
 * (@kevinfodness)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/api-invalid_document/#post-8940870)
 * Ah—when I was transposing the URL to lowercase, I lowercased the `/I/`, and it
   apparently needed to be capitalized.
 * In any case, if Apple News can’t read the Amazon URI, that’s unfortunately beyond
   the scope of this plugin. It’s likely a restriction on Amazon’s end, but I can’t
   say for certain.
 * Is it important to have the Amazon products embedded at the end of the article?
   Could you use a filter to strip them out when the Apple News JSON is being generated?
 *  Thread Starter [Kingsley Felix](https://wordpress.org/support/users/iamkingsleyf/)
 * (@iamkingsleyf)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/api-invalid_document/#post-8940905)
 * Its not that important, but if there is a way to strip out the shortcodes use
   for displaying the products.
 * by the way does adsense work on apple news?
 *  Plugin Author [Bradford Campeau-Laurion](https://wordpress.org/support/users/potatomaster/)
 * (@potatomaster)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/api-invalid_document/#post-8940925)
 * Shortcodes are rendered prior to sending content to Apple News. If the HTML is
   compatible with Apple News format, it will be converted as with any other content.
   If you want to remove specific shortcodes before publishing, I encourage you 
   to use the filter `apple_news_exporter_content_pre`: [https://github.com/alleyinteractive/apple-news/wiki/Action-and-Filter-Hooks#adminapple-actionsindexclass-exportphp-1](https://github.com/alleyinteractive/apple-news/wiki/Action-and-Filter-Hooks#adminapple-actionsindexclass-exportphp-1)
 * No ads work on Apple News other than iAd. Please read the documentation here:
   [https://developer.apple.com/library/content/documentation/General/Conceptual/iAd_News_Advertising/index.html](https://developer.apple.com/library/content/documentation/General/Conceptual/iAd_News_Advertising/index.html)
 *  Thread Starter [Kingsley Felix](https://wordpress.org/support/users/iamkingsleyf/)
 * (@iamkingsleyf)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/api-invalid_document/#post-8943467)
 * alright thanks

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

The topic ‘API: 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](https://wordpress.org/support/topic-tag/api/)
 * [Apple News](https://wordpress.org/support/topic-tag/apple-news/)

 * 10 replies
 * 3 participants
 * Last reply from: [Kingsley Felix](https://wordpress.org/support/users/iamkingsleyf/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/api-invalid_document/#post-8943467)
 * Status: resolved