• Resolved pxforti

    (@pxforti)


    When I create a new post and publish it in wordpress, I get this error:
    There has been an error with the API: The attachment article.json could not be included in the request because it was empty.

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

    (@potatomaster)

    Sounds like the publishing process is failing somewhere, likely due to an error. Please check your PHP error logs and see if you can find the error message. If you don’t know how to do this, please contact your web host.

    Thanks.

    Thread Starter pxforti

    (@pxforti)

    Note: I did check with host and file_get_contents and allow_url_fopen are enabled.

    Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    Please check for errors though. Thanks.

    Thread Starter pxforti

    (@pxforti)

    There are no errors related to this plugin.

    Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    Have you tried disabling other plugins and/or custom code to see if there is a conflict somewhere?

    Also, are you using remote images in the plugin settings? If not, try that.

    Thread Starter pxforti

    (@pxforti)

    I tried disabling all plugins but still get error.

    Also, remote images was off. I turned it on but still get error.

    We have the same issue. @pxforti were you able to resolve it? If so, would you please post how you did it? Thank you in advance.

    Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    There have been reports of an issue with the API itself today, unrelated to the plugin. We’re waiting on an update from Apple about that and will post it soon.

    In the meantime, I wouldn’t try troubleshoot as you may get false positives.

    Thanks.

    Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    Can you confirm if this issue is still occurring for you?

    Yes, it is still occurring. We have “Use Remote Images?” set to “yes”. The plugin debugging option is also set to “yes” but no emails appear to be generating with an API response.

    There are no Publish to Apple News-related PHP Notices in the debug.log at the time the “There has been an error with the API: The attachment article.json could not be included in the request because it was empty.” displays.

    Thanks for your help.

    I’m not sure if this is pertinent, or points to something helpful in particular, but with the app’s debugging feature enabled, we now see the following message display when a new post is published, or an existing post is updated:

    The following components are unsupported by Apple News and were removed:
    div
    div
    empty body component

    This debugging message accompanies the original error message:

    There has been an error with the API: The attachment article.json could not be included in the request because it was empty.

    Thanks again.

    Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    So the issue appears to be that the plugin is determining that your entire body content is incompatible with Apple News format. Can you please link me to a post that’s experiencing this error?

    Thanks.

    Thanks for your reply. A link is: https://tchlp.com/2dO07hb

    Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    I am seeing a couple ad components in the body that are incompatible with Apple News and are being removed, which corresponds to the message that you’re seeing. It however doesn’t explain the problem since the rest of the body should be fine. Can you confirm what setting you’re using for Component Alerts (none, warn or fail)?

    We also just released version 1.1.9 yesterday which handled an update to the Apple News API. Please let us know if this fixed your issue. If not, we also added an enhancement to the debug mode. Please enable debug mode and paste the contents of the email it sends you here as code for a post that is experiencing this error.

    Thanks.

    The update to 1.1.9 did not fix the issue we are having. Component Alerts was set to warn. It was changed to fail today to see what would happen. Debug mode was enabled a couple of days ago, which was when we began to see the “The following components are unsupported by Apple News and were removed:” message in the admin area when posts were published or updated. Unfortunately no email is being received. I did change the email address to see if one was being blocked or filtered, and checked junk mail boxes, but no emails related to the app’s debugging have been received. I thought perhaps changing Component Alerts from warn to fail would send the email, but it didn’t seem to change anything. Thanks for your continued troubleshooting.

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘There has been an error with the API: The attachment article.json could not be i’ is closed to new replies.