Google日历按网址添加要求 [英] Google calendar add by URL requirements

查看:105
本文介绍了Google日历按网址添加要求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过按网址添加方法添加Google日历.我收到来自Google日历的无法在'我的URL'上为'我的用户名'添加导入的日历"的通用错误.我添加到Google的URL调用了Restful服务,该服务将发送回.ics文件.我可以在以下位置验证我的URL: http://severinghaus.org/projects/icv/和此处: http://icalvalid.cloudapp.net/ Google日历期望收到什么?失踪了吗?

I am trying to add a Google calendar through the add by URL method. I receive a generic error of "Failed to add imported calendar at 'my URL' for 'my username' " from Google calendar. The URL I'm adding to Google calls a Restful service that sends back a .ics file. I am able to validate my URL here: http://severinghaus.org/projects/icv/ and here: http://icalvalid.cloudapp.net/ What is it that Google calendar is expecting to receive that I am missing?

这些是我返回的.ics文件的内容:

These are the contents of the .ics file I am returning:

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Bryan G LLC//Bryan G Calendar 2014.4.30//EN
X-WR-CALNAME:Bryang Calendar
X-WR-TIMEZONE:America/New_York
BEGIN:VTIMEZONE
TZID:America/New_York
X-LIC-LOCATION:America/New_York
BEGIN:DAYLIGHT
TZOFFSETFROM:-0500
TZOFFSETTO:-0400
TZNAME:EDT
DTSTART:19700308T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:-0400
TZOFFSETTO:-0500
TZNAME:EST
DTSTART:19701101T020000
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
DTSTAMP:20140505T131700Z
DTSTART;TZID=America/New_York:20140725T084500
DURATION:PT2H
UID:1248@bryang.net
SUMMARY:Burns JRSR High School FH C V Home Rocky Mountain High School 
LOCATION:Home
DESCRIPTION:
END:VEVENT
END:VCALENDAR

推荐答案

此处存在相同问题.我的网址很长,包含很多编码数据,但是我可以肯定,网址是100%符合规范.在服务器日志中,我可以看到Google甚至没有尝试加载提要,它只是由于一个通用错误而拒绝了它.不幸的是,就像前不久的MSIE6一样,google太大了,不容忽视,他们可以解决任何问题,所以现在这是我要解决的问题.

Same issue here. I had a very long URL with lots of encoded data, but I'm certain the URL was 100% following the spec. In the server logs I could see that Google wasn't even trying to load the feed, it just rejected it with a generic error. Unfortunately, like MSIE6 was a while ago, google is too big to ignore and they can get away with anything, so now it's my issue to solve.

我尝试了以下操作:

  • 在网址中添加.ical;
  • 改为将URL编码的数据编码为十六进制;
  • 添加随机参数以避免缓存;
  • 使用新创建的子域而不是子文件夹;

也许还有我不记得的更多内容.都没用.

and maybe more that I don't remember. All useless.

最后,我使用了新的子域,并将所有编码数据写入文件,例如 user7subscriptions.txt .现在,URL如下所示: http://ical.example.net/?id=7.这行得通.出于显而易见的原因,一个非常短的URL就可以了.

Finally I used the new subdomain and wrote all the encoded data into a file, like user7subscriptions.txt. Now the URL looks like this: http://ical.example.net/?id=7. This works. For no apparent reason, a very short URL will just work.

与内容无关.数据从未改变,这不可能是Google缓存不正确(我会看到他们本来会缓存的请求,从来没有一个).

It has nothing to do with the ical contents. The data never changed, it can't be that Google got a bad cache (I would have seen the request that they would have cached, there never was one).

这篇关于Google日历按网址添加要求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆