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?
- The topic ‘Invalid Document error’ is closed to new replies.