Title: Invalid Document error
Last modified: August 31, 2016

---

# Invalid Document error

 *  Resolved [opencollegearts](https://wordpress.org/support/users/opencollegearts/)
 * (@opencollegearts)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/invalid-document-error/)
 * I’m suddenly getting an Invalid Document error when trying to publish to Apple
   News manually. The debug message is:
 *     ```
       Array
       (
           [headers] => Array
               (
                   [date] => Thu, 05 May 2016 10:16:32 GMT
                   [request-id] => dd016781-ef74-40c9-878a-12089bccb0bb
   
                   [content-type] => application/json; charset=UTF-8
                   [content-length] => 277
                   [connection] => keep-alive
               )
   
           [body] => {"errors":[{"code":"INVALID_DOCUMENT","keyPath":["root","components","[5]","text"],"message":"\"text\" was \"\\\"\\\"\" should be not (null or an empty string)"},{"code":"INVALID_DOCUMENT","keyPath":["root","components","[5]"],"message":"no components defined for role=body"}]}
           [response] => Array
               (
                   [code] => 400
                   [message] => Bad Request
               )
   
           [cookies] => Array
               (
               )
   
           [filename] =>
       )
       ```
   
 * I've downloaded the json and the body, text component is in there as usual. Also,
   no API details have been changed, in fact an article published fine just this
   morning, but subsequent articles I tried to published just seconds after have
   been reporting this error. Any advise?
 * [https://wordpress.org/plugins/publish-to-apple-news/](https://wordpress.org/plugins/publish-to-apple-news/)

Viewing 2 replies - 16 through 17 (of 17 total)

[←](https://wordpress.org/support/topic/invalid-document-error/?output_format=md)
[1](https://wordpress.org/support/topic/invalid-document-error/?output_format=md)
2

 *  Plugin Author [Bradford Campeau-Laurion](https://wordpress.org/support/users/potatomaster/)
 * (@potatomaster)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/invalid-document-error/page/2/#post-7351390)
 * This is scheduled to be resolved in version 1.1.8, likely coming in September.
 *  Plugin Author [Bradford Campeau-Laurion](https://wordpress.org/support/users/potatomaster/)
 * (@potatomaster)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/invalid-document-error/page/2/#post-8649634)
 * This should be resolved in version 1.2.1 which is releasing very soon.

Viewing 2 replies - 16 through 17 (of 17 total)

[←](https://wordpress.org/support/topic/invalid-document-error/?output_format=md)
[1](https://wordpress.org/support/topic/invalid-document-error/?output_format=md)
2

The topic ‘Invalid Document error’ 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

 * [Apple News](https://wordpress.org/support/topic-tag/apple-news/)
 * [Invalid Document](https://wordpress.org/support/topic-tag/invalid-document/)

 * 17 replies
 * 5 participants
 * Last reply from: [Bradford Campeau-Laurion](https://wordpress.org/support/users/potatomaster/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/invalid-document-error/page/2/#post-8649634)
 * Status: resolved