• Resolved darmenti

    (@darmenti)


    Hello,

    I am the administrator for two Apple News accounts, of which we use the WordPress plugin. The first one has been working great for a year now and our posts publish wonderfully without no errors.

    I recently installed the WordPress plugin for our second account: FlipKey (which I am the administrator). We are publishing content from our blog, here: https://www.flipkey.com/blog/

    For FlipKey, I used the exact same theme and settings that I used for the first account. Thinking that if those worked properly there, then they should for FlipKey as well! (For FlipKey though I obviously used the correct API key/id/secret)

    However, when I hit “Publish to Apple News” in our WordPress instance on an individual article, and I have “publish as a draft” checked off, my individual post page in WordPress sits there loading for about 30 seconds and then times out——and shows me a page that says “temporarily unavailable please try again later.”

    It never sends me a component alert or a JSON alert even though I have both those checked off as well. So it seems like nothing is actually reaching Apple News?

    I can 100% guarantee that my API credentials are correct in the plugin.

    Any idea why my page is timing out? Have you seen this before? I could have my dev team investigate I just don’t know where they should start. If you have any suggestions I’d greatly appreciate it.

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • We are having this problem as well. I guess we’ll try the option for “Asynchronously publish to Apple News.” But I don’t know if it will retry on failure. Please tell me if you found anything else out @darmenti.

    Here is the longer story. I’ve been tracing a timeout on post saves. The editor publishing articles reported to me WP times out completely sometimes and he can’t publish.

    I put a timer on the ‘save_post’ action and found Admin_Apple_Post_Sync::do_publish takes a long time to execute. My first two tests showed 4+ seconds and 8+ seconds. No other action on that hook took longer than 0.026 seconds (WPSEO_Link_Watcher::save_post for the record, from another plugin of course).

    I guess it is a network delay contacting Apple. I may try debugging that next. Or, it could be some delay assembling the data to send to Apple, in which case there’s a chance other plugins are involved, or this plugin is doing difficult db queries.

    Regarding the usage note for async, we do have “yes” for “Use remote images”.

    4. Asynchronously publish to Apple News: Publish to Apple News using a single scheduled event rather than on publish. This is generally only necessary if you’re forced to use bundled images and you’re having issues with timeouts on publish. We generally recommend leaving this set to ‘no’ and using remote images.

    https://github.com/alleyinteractive/apple-news/wiki/configuration

    Plugin Author Kevin Fodness

    (@kevinfodness)

    Yes, it seems like a network delay contacting Apple News. Can you contact your host and determine if outgoing connections are being blocked in any way?

    Plugin Author Kevin Fodness

    (@kevinfodness)

    Closing due to inactivity.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WordPress Post Timing Out When Publishing To Apple News’ is closed to new replies.