wusung / googlecl

Automatically exported from code.google.com/p/googlecl
0 stars 0 forks source link

google calendar add failed #371

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.google calendar add "Soccer game vs. Blade Runners Sunday 2/27 5:15 PM"
(this failed a bunch of times in a row and then started working)

What is the expected output? What do you see instead?
I expected it to give no errors... instead I saw this:
Traceback (most recent call last):
  File "/usr/bin/google", line 577, in <module>
    main()
  File "/usr/bin/google", line 571, in main
    run_once(options, args)
  File "/usr/bin/google", line 418, in run_once
    task.run(client, options, args)
  File "/usr/lib/python2.7/site-packages/googlecl/calendar/service.py", line 504, in _run_add
    results = client.quick_add_event(args, cal.user)
  File "/usr/lib/python2.7/site-packages/googlecl/calendar/service.py", line 223, in quick_add_event
    USER_BATCH_URL_FORMAT % calendar_user)
  File "/usr/lib/python2.7/site-packages/gdata/calendar/service.py", line 446, in ExecuteBatch
    return self.Post(batch_feed, url, converter=converter)
  File "/usr/lib/python2.7/site-packages/gdata/service.py", line 1236, in Post
    media_source=media_source, converter=converter)
  File "/usr/lib/python2.7/site-packages/gdata/service.py", line 1347, in PostOrPut
    redirects_remaining - 1, media_source, converter=converter)
  File "/usr/lib/python2.7/site-packages/gdata/service.py", line 1347, in PostOrPut
    redirects_remaining - 1, media_source, converter=converter)
  File "/usr/lib/python2.7/site-packages/gdata/service.py", line 1347, in PostOrPut
    redirects_remaining - 1, media_source, converter=converter)
  File "/usr/lib/python2.7/site-packages/gdata/service.py", line 1347, in PostOrPut
    redirects_remaining - 1, media_source, converter=converter)
  File "/usr/lib/python2.7/site-packages/gdata/service.py", line 1355, in PostOrPut
    'body': result_body}
gdata.service.RequestError: {'status': 302, 'body': 
'<HTML>\n<HEAD>\n<TITLE>Moved Temporarily</TITLE>\n</HEAD>\n<BODY 
BGCOLOR="#FFFFFF" TEXT="#000000">\n<H1>Moved Temporarily</H1>\nThe document has 
moved <A 
HREF="http://www.google.com/calendar/feeds/default/private/full/batch?gsessionid
=h7rbvGb3rhwGHdhyYwpSPQ">here</A>.\n</BODY>\n</HTML>\n', 'reason': 'Redirect 
received, but redirects_remaining <= 0'}

What version of the product are you using? On what operating system? 
fedora 14 google 0.9.9
What
version of gdata-python-client (aka python-gdata)?
python-gdata-2.0.12-1.fc14.noarch
libgdata-0.6.4-4.fc14.i686

Please provide any additional information below.
I wrote a script to add a bunch of games to my schedule.  This one was in the 
middle and all of the ones before it and after it worked.  This one failed a 
dozen times in a row and then finally worked.

Original issue reported on code.google.com by idh...@gmail.com on 27 Feb 2011 at 6:19

GoogleCodeExporter commented 8 years ago
This has been a problem for a while, but the GoogleCL >= 0.9.12 automatically 
does some re-directs. You can configure the number of redirects in the 
configuration file.

Original comment by tom.h.mi...@gmail.com on 3 Mar 2011 at 2:34