• Resolved turnheelsite

    (@turnheelsite)


    Plugin was working fine as recently as last night. Today I’m getting “INVALID_DOCUMENT” errors when I try to publish to News from the plugin. I’ve tried the suggestions in earlier threads on this forum (remote images setting, checking for preview, etc.) I’ve had my publisher account for about 6 months and verified I’m still able to publish directly through my publisher account at Apple News so it doesn’t appear to be an issue with my channel.

    The emails I’m getting detailing the failure read as such:

    Array
    (
        [headers] => Array
            (
                [date] => Tue, 28 Jun 2016 00:22:04 GMT
                [request-id] => 6a9d3d54-1e0b-4bbf-8838-30bc085a4150
                [content-type] => application/json; charset=UTF-8
                [content-length] => 266
                [connection] => keep-alive
            )
    
        [body] => {"errors":[{"code":"INVALID_DOCUMENT","keyPath":["components",5,"text"],"value":"","message":"\"text\" was \"\\\"\\\"\" should be not (null or an empty string)"},{"code":"INVALID_DOCUMENT","keyPath":["components",5],"message":"no components defined for role=body"}]}
        [response] => Array
            (
                [code] => 400
                [message] => Bad Request
            )
    
        [cookies] => Array
            (
            )
    
        [filename] =>
    )
    
    request meta:
    
    Array
    (
        [data] => Array
            (
                [links] => Array
                    (
                        [sections] => Array
                            (
                                [0] => https://u48r14.digitalhub.com/sections/0e77d012-2c1e-3efe-bdf2-219cd8478ab3
                            )
    
                    )
    
                [isPreview] => 1
            )
    
    )

    https://ww.wp.xz.cn/plugins/publish-to-apple-news/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter turnheelsite

    (@turnheelsite)

    Additionally, Apple News preview tool throws the following errors on the .json file:

    Error: “text” was “\”\”” should be not (null or an empty string)
    components -> 5 -> text

    Error: no components defined for role=body
    components -> 5

    Very baffling since this worked less than 24 hours ago and nothing changed on my WordPress install during that time frame.

    Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    Sounds like the plugin was totally unable to parse the body text for that particular post. Can you please download and post the JSON file for this post as well as the HTML content for the post (from the “Text” tab in the WordPress editor). Please make sure to post both as code.

    Thanks.

    Thread Starter turnheelsite

    (@turnheelsite)

    Sure thing. For what it’s worth, the newest article after the one in question published through the plugin with no errors.

    Here is the json data:

    {"version":"1.1","identifier":"post-1827","language":"en","title":"5 Big Questions about the WWE Draft","documentStyle":{"backgroundColor":"#FAFAFA"},"layout":{"columns":7,"width":1024,"margin":100,"gutter":20},"components":[{"role":"title","text":"5 Big Questions about the WWE Draft","textStyle":"default-title","layout":"title-layout"},{"role":"header","layout":"headerPhotoLayout","components":[{"role":"photo","layout":"headerPhotoLayout","URL":"bundle:\/\/wwe-2016-draft.jpg"}],"behavior":{"type":"parallax","factor":0.8}},{"role":"byline","text":"by Ben Arp | Jun 27, 2016 | 4:23 PM","textStyle":"default-byline","layout":"byline-layout"},{"role":"body","text":"We\u2019re still a few weeks out from WWE\u2019s upcoming talent draft as part of the \u201cnew era\u201d brand extension. Many fans are curious about where their favorite WWE superstars will land in the draft. Others are concerned that the draft will split up factions and tag teams. However, I\u2019ve come up with five big questions about the WWE draft that have not been answered yet. And yes, before you ask, I\u2019m aware this is all pre-determined. I know this is not a \u201cdraft\u201d in the traditional sense of the NFL, NBA, etc. drafts.","format":"markdown","textStyle":"dropcapBodyStyle","layout":"body-layout"},{"role":"heading2","text":"5 Big Questions about the WWE Draft","format":"markdown","textStyle":"default-heading-2","layout":"heading-layout"},{"role":"body","text":"","format":"markdown","textStyle":"default-body","layout":"body-layout"},{"role":"heading3","text":"1. Why would a GM draft a part-timer?","format":"markdown","textStyle":"default-heading-3","layout":"heading-layout"},{"role":"embedwebvideo","aspectRatio":1.777,"URL":"https:\/\/www.youtube.com\/embed\/vGOLsAypHIc"},{"role":"body","text":"While there are obvious benefits to having a Brock Lesnar or Undertaker on your brand, what would be the ultimate motivation to picking them early? Brock Lesnar going in the first few picks seems a given, but the guy never wrestles on weekly TV and only works a handful of PPVs a year. Logic would dictate a GM would rather pick talent that works the show weekly. While Brock Lesnar may pop your ratings against your competition, think of the six months or more out of the year that he\u2019s nowhere to be seen. The only thing that seems to make guys like Brock and Taker a relevant first round pick is their name value. Guys who don\u2019t work a regular schedule seemingly should be made ineligible for the draft. It would make far more sense to have them either float between shows or sign as a \u201cfree agent\u201d post-draft.","format":"markdown","textStyle":"default-body","layout":"body-layout"},{"role":"heading3","text":"2. Who decides where NXT talent goes after the draft?","format":"markdown","textStyle":"default-heading-3","layout":"heading-layout"},{"role":"embedwebvideo","aspectRatio":1.777,"URL":"https:\/\/www.youtube.com\/embed\/q26rNjco4MA"},{"role":"body","text":"It is possible this point will be addressed as we get closer to the draft. However, as it stands it seems as though WWE will make NXT talent available in the draft. Well, that\u2019s fine and good, but what about after the draft? Will NXT\u00a0talent have to wait for each year\u2019s draft to get called up to the main roster? If not, then who will decide which NXT talent goes where? Will we see the Raw and SmackDown GMs showing up at\u00a0NXT scouting and trying to woo potential stars to their brand? I\u2019d personally like to see that and have the GMs get into bidding wars over top NXT talent. It seems a little more likely that WWE may have a \u201cNXT supplemental draft\u201d later in the year where the two GMs can pick up new talent when WWE brass has decided it\u2019s time for another NXT roster refresh. There is also the distinct possibility that WWE will never address this and NXT main roster debuts will just happen on both brands at random.","format":"markdown","textStyle":"default-body","layout":"body-layout"},{"role":"heading3","text":"3. What would be the motivation of the GMs to split up a tag team?","format":"markdown","textStyle":"default-heading-3","layout":"heading-layout"},{"role":"embedwebvideo","aspectRatio":1.777,"URL":"https:\/\/www.youtube.com\/embed\/XNORHNdwEC0"},{"role":"body","text":"Let\u2019s say the Raw GM decides to draft Jimmy Uso and later the SmackDown GM picks up Jey Uso. What would be the motivation for that creative decision? You can sub in most tag teams here, but I used the Usos\u00a0in this example as they\u2019re guys that almost exclusively works as a team. Logic would dictate that drafting\u00a0to split a team would be counterproductive for both brands. Now, I get WWE will use the draft to split up a few teams to allow for new creative directions. I\u2019m thinking more of what would be the storyline reason to do this? For every Shawn Michaels that excels after he leaves a tag team, there are numerous other examples where the individual parts of a team are less than their sum. I still feel as though tag teams \/ factions should be part of their own \u201cround\u201d of the draft. If WWE wants to split anyone up, use the weeks leading up to the split to write some face \/ heel turns instead of relying on the draft itself as the MacGuffin.","format":"markdown","textStyle":"default-body","layout":"body-layout"},{"role":"heading3","text":"4. What happens to unfinished feuds after the draft?","format":"markdown","textStyle":"default-heading-3","layout":"heading-layout"},{"role":"embedwebvideo","aspectRatio":1.777,"URL":"https:\/\/www.youtube.com\/embed\/-_iwfhk9jDU"},{"role":"body","text":"It seems like John Cena vs. AJ Styles is just getting started. But, if Cena goes to SmackDown and Styles goes to Raw, then say goodbye to the rubber match at SummerSlam. Considering the proximity of the draft to Battleground, I expect the upcoming PPV will feature a ton of blow off matches. The statistical probability for each feud ending up on the same brand is seemingly low. For every Baron Corbin \/ Dolph Ziggler never ending feud that will hopefully be stopped by the split, we could lose Styles \/ Cena or Ambrose \/ Rollins. It almost seems like the timing of this initial draft could not be worse. Hopefully next year, when WWE isn\u2019t at the whims of USA\u2019s programming decisions, the draft can happen at a more opportune time of the year.","format":"markdown","textStyle":"default-body","layout":"body-layout"},{"role":"heading3","text":"5. What about non-NXT free agents?","format":"markdown","textStyle":"default-heading-3","layout":"heading-layout"},{"role":"embedwebvideo","aspectRatio":1.777,"URL":"https:\/\/www.youtube.com\/embed\/ubZR-cfkSDQ"},{"role":"body","text":"Another big question ahead of the draft is what happens to free agents that WWE signs and has bypass NXT? Think AJ Styles. In a brand split WWE Universe, who would dictate where these guys would end up? Again, like the NXT question above, it seems tailor-made for vignettes with the GMs courting an incoming superstar. The cynic in me feels that WWE will just plop these guys onto a brand at random. It\u2019s also possible any incoming free agents would be used bolster whichever roster has injury problems. However, since WWE wants to build NXT as a third brand now, it is likely any new signings will be filtered through NXT from here on out.\n\n \n \n \n","format":"markdown","textStyle":"default-body","layout":"body-layout-last"}],"componentTextStyles":{"dropcapBodyStyle":{"textAlignment":"left","fontName":"AvenirNext-Regular","fontSize":18,"lineHeight":24,"textColor":"#000000","linkStyle":{"textColor":"#428bca"},"paragraphSpacingBefore":18,"paragraphSpacingAfter":18,"dropCapStyle":{"numberOfLines":4,"numberOfCharacters":1,"padding":5,"fontName":"Georgia-Bold","textColor":"#000000"}},"default-heading-2":{"fontName":"AvenirNext-Bold","fontSize":32,"lineHeight":52,"textColor":"#000000","textAlignment":"left"},"default-body":{"textAlignment":"left","fontName":"AvenirNext-Regular","fontSize":18,"lineHeight":24,"textColor":"#000000","linkStyle":{"textColor":"#428bca"},"paragraphSpacingBefore":18,"paragraphSpacingAfter":18},"default-heading-3":{"fontName":"AvenirNext-Bold","fontSize":24,"lineHeight":52,"textColor":"#000000","textAlignment":"left"},"default-title":{"fontName":"AvenirNext-Bold","fontSize":48,"lineHeight":52,"textColor":"#000000","textAlignment":"left"},"default-byline":{"textAlignment":"left","fontName":"AvenirNext-Medium","fontSize":17,"textColor":"#53585f"}},"componentLayouts":{"body-layout":{"columnStart":0,"columnSpan":5,"margin":{"top":12,"bottom":12}},"body-layout-last":{"columnStart":0,"columnSpan":5,"margin":{"top":12,"bottom":30}},"heading-layout":{"columnStart":0,"columnSpan":7,"margin":{"top":15,"bottom":15}},"title-layout":{"margin":{"top":30,"bottom":0}},"headerPhotoLayout":{"columnStart":0,"columnSpan":7,"ignoreDocumentMargin":true},"byline-layout":{"columnStart":0,"columnSpan":7,"margin":{"top":10,"bottom":10}}},"metadata":{"excerpt":"Turn Heel asks five unexpected questions about the upcoming WWE draft and brand extension and theorizes how WWE will handle them in the coming weeks.","thumbnailURL":"bundle:\/\/wwe-2016-draft.jpg","dateCreated":"2016-06-27T23:23:23+00:00","dateModified":"2016-06-27T23:42:41+00:00","datePublished":"2016-06-27T23:23:23+00:00","canonicalURL":"http:\/\/turnheel.com\/5-big-questions-wwe-draft\/","generatorIdentifier":"publish-to-apple-news","generatorName":"Publish to Apple News","generatorVersion":"1.1.4"},"advertisingSettings":{"frequency":1,"layout":{"margin":{"top":15,"bottom":15}}}}

    Thread Starter turnheelsite

    (@turnheelsite)

    And here is the HTML data:

    We're still a few weeks out from WWE's upcoming talent draft as part of the "new era" brand extension. Many fans are curious about where their favorite WWE superstars will land in the draft. Others are concerned that the draft will split up factions and tag teams. However, I've come up with five big questions about the WWE draft that have not been answered yet. And yes, before you ask, I'm aware this is all pre-determined. I know this is not a "draft" in the traditional sense of the NFL, NBA, etc. drafts.
    <h2>5 Big Questions about the WWE Draft</h2>
    
    <h3>1. Why would a GM draft a part-timer?</h3>
    
    
    While there are obvious benefits to having a Brock Lesnar or Undertaker on your brand, what would be the ultimate motivation to picking them early? Brock Lesnar going in the first few picks seems a given, but the guy never wrestles on weekly TV and only works a handful of PPVs a year. Logic would dictate a GM would rather pick talent that works the show weekly. While Brock Lesnar may pop your ratings against your competition, think of the six months or more out of the year that he's nowhere to be seen. The only thing that seems to make guys like Brock and Taker a relevant first round pick is their name value. Guys who don't work a regular schedule seemingly should be made ineligible for the draft. It would make far more sense to have them either float between shows or sign as a "free agent" post-draft.
    <h3>2. Who decides where NXT talent goes after the draft?</h3>
    
    
    It is possible this point will be addressed as we get closer to the draft. However, as it stands it seems as though WWE will make NXT talent available in the draft. Well, that's fine and good, but what about after the draft? Will NXT talent have to wait for each year's draft to get called up to the main roster? If not, then who will decide which NXT talent goes where? Will we see the Raw and SmackDown GMs showing up at NXT scouting and trying to woo potential stars to their brand? I'd personally like to see that and have the GMs get into bidding wars over top NXT talent. It seems a little more likely that WWE may have a "NXT supplemental draft" later in the year where the two GMs can pick up new talent when WWE brass has decided it's time for another NXT roster refresh. There is also the distinct possibility that WWE will never address this and NXT main roster debuts will just happen on both brands at random.
    <h3>3. What would be the motivation of the GMs to split up a tag team?</h3>
    
    
    Let's say the Raw GM decides to draft Jimmy Uso and later the SmackDown GM picks up Jey Uso. What would be the motivation for that creative decision? You can sub in most tag teams here, but I used the Usos in this example as they're guys that almost exclusively works as a team. Logic would dictate that drafting to split a team would be counterproductive for both brands. Now, I get WWE will use the draft to split up a few teams to allow for new creative directions. I'm thinking more of what would be the storyline reason to do this? For every Shawn Michaels that excels after he leaves a tag team, there are numerous other examples where the individual parts of a team are less than their sum. I still feel as though tag teams / factions should be part of their own "round" of the draft. If WWE wants to split anyone up, use the weeks leading up to the split to write some face / heel turns instead of relying on the draft itself as the MacGuffin.
    <h3>4. What happens to unfinished feuds after the draft?</h3>
    
    
    It seems like John Cena vs. AJ Styles is just getting started. But, if Cena goes to SmackDown and Styles goes to Raw, then say goodbye to the rubber match at SummerSlam. Considering the proximity of the draft to Battleground, I expect the upcoming PPV will feature a ton of blow off matches. The statistical probability for each feud ending up on the same brand is seemingly low. For every Baron Corbin / Dolph Ziggler never ending feud that will hopefully be stopped by the split, we could lose Styles / Cena or Ambrose / Rollins. It almost seems like the timing of this initial draft could not be worse. Hopefully next year, when WWE isn't at the whims of USA's programming decisions, the draft can happen at a more opportune time of the year.
    <h3>5. What about non-NXT free agents?</h3>
    
    
    Another big question ahead of the draft is what happens to free agents that WWE signs and has bypass NXT? Think AJ Styles. In a brand split WWE Universe, who would dictate where these guys would end up? Again, like the NXT question above, it seems tailor-made for vignettes with the GMs courting an incoming superstar. The cynic in me feels that WWE will just plop these guys onto a brand at random. It's also possible any incoming free agents would be used bolster whichever roster has injury problems. However, since WWE wants to build NXT as a third brand now, it is likely any new signings will be filtered through NXT from here on out.
    Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    Are you running a plugin that’s inserting ads into the body content right after the title? That appears to be the source of this issue. Unfortunately, it’s incompatible with Apple News format and is causing an empty text node to be inserted.

    In theory, the plugin should be cleaning this up, so I’ve logged this as an issue on our end: https://github.com/alleyinteractive/apple-news/issues/205

    Your immediate solution would be to conditionally disable that plugin with some custom code in your theme when content is published to Apple News or contact the plugin author to make it compatible. The ads that it inserts aren’t valid in Apple News and therefore should not be inserted into Apple News JSON files.

    Hello, I’m having the same problem and am not running such a plugin. Any other reasons this would happen? Thanks.

    Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    This issue has been marked resolved, so please open a new issue if you need support.

    It will be easiest for us to help you if you can provide the JSON file for this post via pastebin.

    Thanks.This issue has been marked resolved, so please open a new issue if you need support.

    It will be easiest for us to help you if you can provide the JSON file for this post via pastebin.

    Thanks.

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

The topic ‘INVALID_DOCUMENT’ is closed to new replies.