• Resolved Monarchhousing

    (@monarchhousing)


    We love Publish to Apple News.

    Today’s post – https://monarchhousing.org/2017/03/06/affordable-homes/ – got this error:

    There has been an error with the API:
    INVALID_DOCUMENT – “URL” was “” should be valid URL with one of [“bundle”
    “http”
    “https”] scheme(s) (keyPath components->2->components->8->URL)

    I checked all of the URL’s and found one problem. Fixed it and still got the error message.

    I saved the JSON file and it open perfectly in Apple preview.

    How can I fis this so it publishes?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Kevin Fodness

    (@kevinfodness)

    Hi @monarchhousing

    Can you please send the post content from the text tab in WordPress and the generated JSON in a pastebin.com link so I can attempt to reproduce on this end? Apple News will reject the submission if any of the values in the JSON are an empty string, and it’s possible that you’ve discovered an edge case where one slipped by.

    Thanks!

    Thread Starter Monarchhousing

    (@monarchhousing)

    This is a new one but the same issues happened.

    This is the pastebin link: https://pastebin.com/rK2M9dcf

    This is the text.

    [Please put large blocks of code in backticks or use the “code” button]

    <h3 style="text-align: center;">NJ’s Shortage of over 210,000 Affordable Homes will Increase to Crisis Levels</h3>
    <span class="drop_cap">L</span>ast week,<a href="https://www.washingtonpost.com/politics/trump-administration-considers-6-billion-cut-to-hud-budget/2017/03/08/1757e8e8-03ab-11e7-b1e9-a05d3c21f7cf_story.html?tid=ss_tw&utm_term=.701d56326d88"><strong> The Washington Post</strong></a> has reported on preliminary information based on multiple sources confirming that the <a href="https://www.whitehouse.gov/omb"><strong>Office of Management and Budget</strong></a> is proposing to slash the HUD budget for affordable homes and the safety net by as much as 14% or $6B - without inflationary adjustments.
    
    The impact on NJ will be drastic including the loss of thousands of rental vouchers, the loss of almost <a href="https://monarchhousing.org/wp-content/uploads/2017/03/fy2016-formula-allocations-nj.pdf"><strong>$106 million dollars in Home and CDBG funding</strong></a> as well as the accelerated deterioration of <a href="https://www.cbpp.org/sites/default/files/atoms/files/4-13-11hous-NJ.pdf"><strong>public housing for almost 38,000 residents</strong></a>.
    <p class="alert">As advocates, we have our work cut out for us and this year, more than ever, the <a href="https://monarchhousing.org/cr17/"><strong>Congressional Reception</strong></a> is critical. Call <a href="https://www.monarchhousing.org/wp-content/uploads/dcstaff/CongressionalHousingStaffers.pdf"><strong>Congress today</strong></a> and let them know that these budget cuts are not acceptable.</p>
    Our friends at the <a href="https://nlihc.org/"><strong>NLIHC</strong></a> and other leaders of CHCDF will <a href="https://attendee.gotowebinar.com/register/712995188908614659"><strong>host a webinar on Monday, March 20, 2017 at 4 p.m.</strong></a>to learn more about the impact of the proposed budget and how we can work together to protect these critical resources.
    
    In recent years, federal investments in affordable housing were cut significantly because of the low spending caps required by the Budget Control Act of 2011. HUD’s budget is 8.4% lower in 2016 than in 2010 (adjusted for inflation).
    
    <a href="https://www.cbpp.org/sites/default/files/atoms/files/4-13-11hous-NJ.pdf"><img src="https://monarchhousing.org/wp-content/uploads/2017/03/RentalAssistanceNJ.png" alt="Rental Assistance in NJ" width="600" height="295" /></a>Public housing, community development and housing suffering dramatic cuts in Mr. Trump's budget all of which have been hardest hit in recent years. In addition, this budget has been revealed at a time when NJ is experiencing an <a href="https://monarchhousing.org/2017/03/06/affordable-homes/"><strong>affordable homes crisis</strong></a>.
    
    Among the proposed cuts are:
    <ul>
     	<li>The <strong>public housing capital fund</strong> provides modernization and rehabilitation funding for the 1.2-million-unit public housing portfolio would be cut by $1.3 billion or close to a 70% reduction from last year’s funding level. These proposed cuts will dramatically accelerate the current estimated loss of 10,000 to 12,000 public housing units already lost annually.</li>
     	<li>The <strong>public housing operating fund</strong> which covers day-to-day operational and maintenance expenses not covered by resident rents would be cut by of $600 million, a 13% percent reduction from last year, and approximately 72% of what is needed.</li>
     	<li>The proposed cuts to <strong>Housing Choice Voucher</strong> rental assistance including Section 8 Housing and housing vouchers for homeless veterans would result in more than 200,000 families losing that critical support. Many would be forced to pay even more of their limited incomes on rent, having insufficient resources left for food, healthcare, transportation and other basic needs. Others would be unable to cover the increased cost of their rents and would face the destabilizing impact of eviction. In the worst cases, these families will become homeless.</li>
     	<li>The <strong>Community Development Block Grant Program</strong>, which has enjoyed bipartisan support in Congress, is budgeted to receive $3B this fiscal year <strong>would be cut to $0</strong>.</li>
     	<li>The <strong>HOME Investment Partnerships Program</strong>, which provides block grants for local communities to build affordable housing, and Choice Neighborhoods, a program that invests in redeveloping low-income communities, also <strong>would be cut to $0</strong>.</li>
     	<li>In total, about $4B in community planning and development grants would be eliminated under the Office of Management and Budget’s proposal.</li>
     	<li>Housing for the elderly — known as the <strong>Section 202 program</strong> — would be cut by $42 million, nearly 10 percent.</li>
     	<li><strong>Section 811 housing</strong> for people with disabilities would be cut by $29 million, nearly 20 percent.</li>
     	<li>HUD salaries and administrative expenses will be cut by 5 percent, down from $1.36 billion in 2016 to $1.28 billion in 2018.</li>
    </ul>
    <a href="https://www.monarchhousing.org/wp-content/uploads/dcstaff/CongressionalHousingStaffers.pdf"><strong>Congress</strong></a> must soundly reject these proposed devastating cuts.
    
    At that time of his confirmation hearing, Dr. Carson said, "We need to be cognizant of our fiscal responsibilities as well as our social responsibilities. Safety net programs are important. I would never abolish one without having an alternative."
    
    HUD Secretary Carson must uphold the commitments he made during his confirmation process to "house as many families as possible in safe, affordable housing...and look for ways to expand affordable housing options everywhere."
    
    He must urge Mr. Trump to reverse these harmful cuts before submitting a budget proposal to Congress.
    
    Please join us for the <a href="https://monarchhousing.org/cr17/"><strong>2017 Congressional Reception</strong></a> to advocate that Mr. Trump and Congress must lift the spending caps with parity for defense and non-defense programs and ensure the highest level of funding possible for affordable housing.
    
    We cannot afford to balance our budget on the backs of low-income people. Instead, we must invest in the resources that families and communities need to thrive.
    <p style="text-align: center;"><a href="https://www.washingtonpost.com/politics/trump-administration-considers-6-billion-cut-to-hud-budget/2017/03/08/1757e8e8-03ab-11e7-b1e9-a05d3c21f7cf_story.html?tid=ss_tw&utm_term=.701d56326d88"> Washington Post Article</a></p>
    <p style="text-align: center;"><a href="https://monarchhousing.org/2017/03/06/affordable-homes/"> NJ’s Affordable Homes Crisis</a></p>
    <p style="text-align: center;"><a href="https://attendee.gotowebinar.com/register/712995188908614659"> Register for March 20 Webinar</a></p>
    <p style="text-align: center;"><a href="https://monarchhousing.org/2017/03/08/affordable-housing-devasted/"> FY 2018 Budget Webinar </a></p>
    <p style="text-align: center;"><a href="https://monarchhousing.org/cr17/"> 2017 Congressional Reception</a></p>
    <p style="text-align: center;"><a href="https://monarchhousing.us13.list-manage.com/subscribe?u=71c3b29ac8b19ba527f136c69&id=0f78dd487b"> Subscribe to Our Newsletter and Receive News You Can Use Every Morning </a></p>
    <p style="text-align: center;"><a href="https://monarchhousing.us13.list-manage.com/subscribe?u=71c3b29ac8b19ba527f136c69&id=e4794e173c"> Subscribe to Our Weekly Newsletter and Receive News You Can Use Every Friday </a></p>
    Plugin Author Kevin Fodness

    (@kevinfodness)

    Hi @monarchhousing

    I’m not able to reproduce this issue locally using the content you provided. It publishes to my test channel with no problem, and works fine in the News Preview tool. Additionally, the JSON you provided does not have any empty URL blocks, so I’m unclear as to what is failing here.

    Thread Starter Monarchhousing

    (@monarchhousing)

    Kevin, thanks for the update.

    Plugin Author Kevin Fodness

    (@kevinfodness)

    Are you able to publish the article(s) at this point, or are you still having issues? Are you having trouble with the article for which you posted the JSON?

    Thread Starter Monarchhousing

    (@monarchhousing)

    Yes. I hit update and both are now published.

    https://apple.news/AQiY2mWBdQDuxq1dBDbt7cg

    https://apple.news/AzkuyXPuNQCGSUCau1DpsaA

    Very strange. Happy it worked but still a mystery.

    Plugin Author Kevin Fodness

    (@kevinfodness)

    Glad to hear you’re up and running!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Invalid Doucment but JSON is fine’ is closed to new replies.