Error 500 when trying to subscribe to ical calendar feed in Yahoo Calendar

不羁岁月 提交于 2021-01-27 02:35:10

问题


I am trying to subscribe to an ical feed through Yahoo Calendar using a URL in the following format: https://calendar.yahoo.com/subscribe?ics={__ICS_FEED_URL__}&name={__NAME__}. After accessing that URL, Yahoo presents me with a dialog box pre-populated with the URL to the feed and the name. After hitting "OK" a dialog box follows soon after with a 500 error.

Digging around in Chrome Console reveals the following message in the Chrome Console from the call used by Yahoo to subscribe to the calendar: {"calendarError":{"lang":"en-US","description":"Failed to create new folder","detail":"Not Applicable","code":0}}.

Example ical feed

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

Example HTTP response headers for the above feed

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

URL to reproduce the problem

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

What is the cause of this problem? More importantly, what do I need to change to solve it? I have found no documentation online, and have not seen any similar reports of this issue.


回答1:


Since we don't have any answers solving this problem I will post my own strategy for solving this, as we have nothing else to go on at this point (taken from my comment above)

AddEvent.com is providing a service that lets users subscribe to arbitrary calendars using Yahoo Calendar, and thus have already solved this problem. By making sure that ...

  • We use the same transfer protocol as AddEvent (HTTP vs HTTPS),
  • We respond using the same, or similar, HTTP headers as AddEvent,
  • We have the same set of fields in our ICS payload as AddEvent

... we should be able to solve this problem for ourselves. I will edit this answer again once we have done so to report my findings.




回答2:


Based on new knowledge:

The OP wants to subscribe to an external calendar feed into his Yahoo calendar.

I confirmed this method and was able to subscribe. Using the full address and not replacing the https resulted in the exact error you mentioned in your OP.

  1. Go to you Yahoo calendar
  2. In the left frame, hover over Others, click on the gear icon that comes up.
  3. Select Follow other Calendars
  4. Enter link

In this case your link should have looked like this, instead of using the https protocol.

webcal://staging.sendcalendar.com/api/calendar/NZQdHTbmX88cFsm8K/icalfeed


来源:https://stackoverflow.com/questions/39199846/error-500-when-trying-to-subscribe-to-ical-calendar-feed-in-yahoo-calendar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!