我有这个代码...
while (True):
try:
feed_entry = cal_client.GetCalendarEventFeed(process_steps_dev_cal_link).entry
feed_entry2 = cal_client.GetCalendarEventFeed(backup_steps_dev_cal_link).entry
break
except gdata.client.RedirectError, e:
print e
我正在从我的 cal_client 登录中获取两个日历链接。但是, RedirectError 一直像这样显示...
Too many redirects from server: 302, <HTML>
<HEAD>
<TITLE>Moved Temporarily</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Moved Temporarily</H1>
The document has moved <A HREF="https://www.google.com/calendar/feeds/"myemail"/private/full?gsessionid=2jV2trFEab1MHFHbjnGU4Q">here</A>.
</BODY>
</HTML>
这是什么原因?直到今天一切正常。此外,它不会每次都这样做。有时有效,有时无效。但大多不是。