Apple News API published articles got FAILED_PROCESSING

493 views Asked by At

UPDATE: This was a temporary issue last a couple of days.

I developed a python apple news api client and I successfully pushed articles to preview in my apple news channel. Anyway, when I check the state of those articles, most of them is FAILED_PROCESSING. Only one went LIVE but without images (animated GIFs).

There aren't details about the error and I can't guess what is wrong. Articles look good in News Preview tool. Does anyone have any clue about? Any way to debug the issue?

Thanks!

   >>>api_key = 'xxxxx'
   >>>secret_key = 'xxxx'
   >>>channel_id = 'xxxx'
   >>>client = ApiClient(api_key, secret_key, channel_id=channel_id)
   >>>articles = client.search_articles()
   >>>articles
   {u'data': [{u'accessoryText': None,
   u'createdAt': u'2016-04-27T08:36:35Z',
   u'id': u'xxxxx',
   u'isCandidateToBeFeatured': False,
   u'isDevelopingStory': False,
   u'isPreview': True,
   u'isSponsored': False,
   u'links': {u'channel': u'https://news-api.apple.com/channels/xxxxx',
    u'sections': [u'https://news-api.apple.com/sections/xxxxx'],
    u'self': u'https://news-api.apple.com/articles/xxxxx'},
   u'modifiedAt': u'2016-04-27T08:36:47Z',
   u'revision': u'AAAAAAAAAAD//////////w==',
   u'shareUrl': u'https://apple.news/xxxxxx',
   u'state': u'FAILED_PROCESSING',
   u'title': u'Test 1',
   u'type': u'article'},

  ....

  {u'accessoryText': None,
   u'createdAt': u'2016-04-14T07:07:27Z',
   u'id': u'xxxx',
   u'isCandidateToBeFeatured': False,
   u'isDevelopingStory': False,
   u'isPreview': True,
   u'isSponsored': False,
   u'links': {u'channel': u'https://news-api.apple.com/channels/xxxx',
    u'sections': [u'https://news-api.apple.com/sections/xxxx'],
    u'self': u'https://news-api.apple.com/articles/xxxx'},
   u'modifiedAt': u'2016-04-14T07:07:45Z',
   u'revision': u'AAAAAAAAAAD//////////w==',
   u'shareUrl': u'https://apple.news/xxxx',
   u'state': u'LIVE',
   u'title': u"Test 2",
   u'type': u'article'}],
 u'links': {u'next': None,
  u'self': u'https://news-api.apple.com/channels/xxxx/articles'}}
2

There are 2 answers

3
localheinz On

Since you suggest that processing proceeded for articles not containing images, possibly your problem is related to not using bundled images.

Support for remote images was added only as of 2016-05-04:

Added support for remote images under Apple New Format Document and Resources for the Create Article endpoint

For reference, see

1
haz On

Unfortunately, Apple News error messages aren't very useful.

This is a checklist that is by no means complete, but may help you diagnose some issues.

Common Errors in Apple Native Format (ANF) Files

Note that URLs are now allowed instead of bundled images as of the most recent Apple News update.