【问题标题】:Apple News API published articles got FAILED_PROCESSINGApple News API 发布的文章获得 FAILED_PROCESSING
【发布时间】:2016-06-26 05:22:03
【问题描述】:

更新:这是过去几天的临时问题。

我开发了一个python apple news api客户端,并成功推送文章预览到我的apple news频道。 无论如何,当我检查那些文章的状态时,大多数都是 FAILED_PROCESSING。只有一个上线了,但没有图片(动画 GIF)。

没有关于错误的详细信息,我猜不出哪里出了问题。文章在新闻预览工具中看起来不错。 有人知道吗?有什么方法可以调试问题?

谢谢!

   >>>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'}}

【问题讨论】:

    标签: python apple-news


    【解决方案1】:

    由于您建议对不包含图片的文章进行处理,因此您的问题可能与未使用捆绑图片有关。

    仅从 2016-05-04 开始添加对远程图像的支持:

    Create Article 端点的 Apple 新格式文档和资源下添加了对远程图像的支持

    参考见

    【讨论】:

    • 我的 API 作为上传捆绑图像或仅使用远程 URL 的选项。这个问题不相关,这似乎是他们这边的临时问题。它们仍处于测试版。
    • 它对我们来说很好用,我们已经使用他们的 API 发表了几千篇文章。
    • 是的,我忘了说这是一个临时问题!
    【解决方案2】:

    很遗憾,Apple News 错误消息并不是很有用。

    这份清单并不完整,但可以帮助您诊断一些问题。

    Common Errors in Apple Native Format (ANF) Files

    请注意,从最近的 Apple News 更新开始,现在允许使用 URL,而不是捆绑的图像。

    【讨论】:

    • 谢谢。它可能很有用!他们肯定需要改进错误消息。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-30
    • 2016-10-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-09-21
    相关资源
    最近更新 更多