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

时间:2016-08-29 06:32:20

标签: http calendar icalendar yahoo

我正在尝试使用以下格式的网址通过Yahoo Calendar订阅一个feed:https://calendar.yahoo.com/subscribe?ics={__ICS_FEED_URL__}&name={__NAME__}。访问该URL后,Yahoo向我提供了一个预先填充了Feed的URL和名称的对话框。点击" OK"不久之后会出现一个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

上述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

重现问题的网址

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

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

2 个答案:

答案 0 :(得分:0)

由于我们没有解决这个问题的任何答案,我会发布自己的解决方案,因为我们现在没有别的事情可以继续(取自上面的评论)

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

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

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

答案 1 :(得分:-1)

基于新知识:

OP希望在他的雅虎日历中订阅外部日历源。

我确认了这种方法,并且能够订阅。使用完整地址而不是替换https会导致您在OP中提到的确切错误。

  1. 转到 Yahoo日历
  2. 在左侧框架中,将鼠标悬停在其他上,点击出现的齿轮图标
  3. 选择关注其他日历
  4. 输入链接
  5. 在这种情况下,您的链接应该是这样的,而不是使用https协议。

    webcal://staging.sendcalendar.com/api/calendar/NZQdHTbmX88cFsm8K/icalfeed
    
相关问题