尝试订阅Yahoo Calendar中的日历源时出错500

bjo*_*rnl 9 yahoo icalendar calendar http

我正在尝试使用以下格式的URL通过Yahoo Calendar订阅一个feed馈送:https://calendar.yahoo.com/subscribe?ics={__ICS_FEED_URL__}&name={__NAME__}.访问该URL后,Yahoo向我提供了一个预先填充了Feed的URL和名称的对话框.点击"确定"后,很快就会出现一个500错误的对话框.

在Chrome控制台中进行挖掘,可以通过Yahoo用于订阅日历的调用在Chrome控制台中显示以下消息:{"calendarError":{"lang":"en-US","description":"Failed to create new folder","detail":"Not Applicable","code":0}}.

示例饵料

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Lanzar Group//SendCalendar//EN
NAME:Sample: Walking Tours
X-WR-CALNAME:Sample: Walking Tours
BEGIN:VEVENT
UID:MKq2333pN8zH6RCeC@sendcalendar.com
SEQUENCE:0
DTSTAMP:20160829T062543Z
DTSTART:20160901T100000Z
DTEND:20160901T120000Z
SUMMARY:Sample Event: Visiting the Eiffel Tower
LOCATION:Champ de Mars\, 5 Avenue Anatole France\, 75007 Paris\, France
DESCRIPTION:The Eiffel Tower is one of the most recognizable buildings in the world\, so of course it is an important part of any trip to Paris. Since its completion over 100 years ago\, it has become a symbol of Paris. Although it is no longer the tallest building in the world\, a title it held for 41 years. it still dominates the skyline of the City of Lights. It’s also very popular\, here are some tips for making your visit go smoothly.
ORGANIZER;CN="John Doe":mailto:john.doe@example.com
END:VEVENT
END:VCALENDAR
Run Code Online (Sandbox Code Playgroud)

上述Feed的HTTP响应标头示例

Server: nginx/1.11.3
Date: Mon, 29 Aug 2016 06:28:06 GMT
Content-Type: text/calendar; charset=utf-8
Connection: keep-alive
Cache-Control: no-store
Pragma: no-cache
Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept
Content-Disposition: attachment; filename=sample-walking-tours.ics
Vary: Accept-Encoding
Strict-Transport-Security: max-age=31536000
Run Code Online (Sandbox Code Playgroud)

用于重现问题的URL

https://calendar.yahoo.com/subscribe?ics=https://staging.sendcalendar.com/api/calendar/NZQdHTbmX88cFsm8K/icalfeed&name=Sample:%20Walking%20Tours

这个问题的原因是什么?更重要的是,我需要改变什么来解决它?我没有在网上找到任何文档,也没有看到任何关于此问题的类似报告.

bjo*_*rnl 0

由于我们没有任何答案来解决这个问题,我将发布我自己的解决此问题的策略,因为我们此时没有其他可继续的内容(摘自我上面的评论)

AddEvent.com 正在提供一项服务,允许用户使用 Yahoo Calendar 订阅任意日历,因此已经解决了这个问题。通过确保...

  • 我们使用与 AddEvent 相同的传输协议(HTTP 与 HTTPS),
  • 我们使用与 AddEvent 相同或相似的 HTTP 标头进行响应,
  • 我们的 ICS 负载中具有与 AddEvent 相同的字段集

...我们应该能够自己解决这个问题。一旦我们完成报告我的发现,我将再次编辑这个答案。