• Resolved Kingsley Felix

    (@iamkingsleyf)


    Hello;

    This has happened twice?

    There has been an error with the API:
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->3->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->3)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->6->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->6)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->8->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->8)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->10->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->10)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->12->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->12)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->14->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->14)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->16->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->16)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->18->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->18)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->20->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->20)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->22->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->22)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->24->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->24)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->26->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->26)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->28->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->28)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->30->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->30)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->32->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->32)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->34->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->34)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->36->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->36)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->38->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->38)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->40->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->40)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->42->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->42)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->44->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->44)

    Happens when i publish posts

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    Can you please send over the JSON for the article in question via a pastebin.com link? You can get the JSON for the article by clicking on Apple News in the WordPress sidebar, then finding the article and clicking the Download link.

    Thread Starter Kingsley Felix

    (@iamkingsleyf)

    Seems like because there was spaces between each paragraph

    Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    @iamkingsleyf do you have HTML Support set to ‘yes’ or ‘no’?

    Thanks.

    Thread Starter Kingsley Felix

    (@iamkingsleyf)

    @potatomaster “YES” but i got this error when there is lots of space between the articles

    Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    OK, we are tracking that issue here: https://github.com/alleyinteractive/apple-news/issues/365

    Thread Starter Kingsley Felix

    (@iamkingsleyf)

    still exist…. here is how the article that caused the error looks on the editor (but i will close the spaces though).
    spaces in editor

    Thread Starter Kingsley Felix

    (@iamkingsleyf)

    There has been an error with the API:
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->3->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->3)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->6->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->6)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->9->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->9)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->11->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->11)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->13->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->13)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->15->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->15)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->17->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->17)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->19->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->19)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->21->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->21)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->23->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->23)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->25->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->25)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->27->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->27)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->29->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->29)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->31->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->31)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->33->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->33)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->35->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->35)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->37->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->37)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->39->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->39)
    INVALID_DOCUMENT - "text" was "" should be not (null or an empty string) (keyPath components->1->components->41->text)
    INVALID_DOCUMENT - no components defined for role=body (keyPath components->1->components->41)
    
    If you need assistance, please reach out for support on www.remarpro.com or GitHub.

    I am getting the same issue
    This is what it looks like in the editor:
    Regulars here know I have long been partial to Motorola’s G series phones that offer solid smartphone features at a budget price. Design however has been black plastic and glass drab. The new G5 launching today May 3 in Canada changes that. Lenovo has upped the design with a plastic and aluminum removable back and given the G5 a more expensive look. It remains a bit thicker than top selling premium smartphones and only the thick bezel around the screen gives away that this is a budget phone.

    That said the G5 is still an impressive phone that feels good in the hand sports a replaceable battery and up to 128 Gb SD card support to supplement its 16Gb of onboard storage. It also features a very effective fingerprint sensor at the bottom of the screen. The $250 price tag with no plan is also tough to beat.

    SPECIFICATIONS

    Display size, resolution 5-inch; 1,920×1,080 pixels

    And this is what the preview looks like
    Regulars here know I have long been partial to Motorola’s G series phones that offer solid smartphone features at a budget price. Design however has been black plastic and glass drab. The new G5 launching today May 3 in Canada changes that. Lenovo has upped the design with a plastic and aluminum removable back and given the G5 a more expensive look. It remains a bit thicker than top selling premium smartphones and only the thick bezel around the screen gives away that this is a budget phone.
    That said the G5 is still an impressive phone that feels good in the hand sports a replaceable battery and up to 128 Gb SD card support to supplement its 16Gb of onboard storage. It also features a very effective fingerprint sensor at the bottom of the screen. The $250 price tag with no plan is also tough to beat.
    SPECIFICATIONS
    Display size, resolution 5-inch; 1,920×1,080 pixels

    I noticed the spacing problem on March 22 ( took a long break from writing for health reasons) so I can only know it started before that date. I could correct the spacing in the editor by editing the html and it posted to Apple News OK
    It is only with the post of May 3 that I noticed the issue with Apps News.

    The Apple News Issue could have started anytime after Apr 18 which was the date of my previous post.

    Plugin Author Kevin Fodness

    (@kevinfodness)

    Closing this issue in favor of tracking progress on a fix via GitHub.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘There has been an error with the API:’ is closed to new replies.