salimoha / googlecl

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

cant add 30 min schedule #121

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
$ google calendar add "test googleCL for 30 min"

What is the expected output? What do you see instead?
Traceback (most recent call last):
  File "/usr/local/bin/google", line 463, in <module>
    main()
  File "/usr/local/bin/google", line 457, in main
    run_once(options, args)
  File "/usr/local/bin/google", line 356, in run_once
    task.run(client, options, args)
  File "/Library/Python/2.6/site-packages/googlecl/calendar/service.py", line 474, in _run_add
    client.quick_add_event(args, cal_user)
  File "/Library/Python/2.6/site-packages/googlecl/calendar/service.py", line 184, in quick_add_event
    USER_BATCH_URL_FORMAT % calendar_user)
  File "/Library/Python/2.6/site-packages/gdata/calendar/service.py", line 446, in ExecuteBatch
    return self.Post(batch_feed, url, converter=converter)
  File "/Library/Python/2.6/site-packages/gdata/service.py", line 1236, in Post
    media_source=media_source, converter=converter)
  File "/Library/Python/2.6/site-packages/gdata/service.py", line 1346, in PostOrPut
    redirects_remaining - 1, media_source, converter=converter)
  File "/Library/Python/2.6/site-packages/gdata/service.py", line 1346, in PostOrPut
    redirects_remaining - 1, media_source, converter=converter)
  File "/Library/Python/2.6/site-packages/gdata/service.py", line 1346, in PostOrPut
    redirects_remaining - 1, media_source, converter=converter)
  File "/Library/Python/2.6/site-packages/gdata/service.py", line 1346, in PostOrPut
    redirects_remaining - 1, media_source, converter=converter)
  File "/Library/Python/2.6/site-packages/gdata/service.py", line 1354, 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="https://www.google.com/calendar/feeds/default/private/full/batch?gsessioni
d=1CPa24JzuCv0nBqNR9lxmA">here</A>.\n</BODY>\n</HTML>\n', 'reason': 'Redirect 
received, but redirects_remaining <= 0'}
kappas-MacBook-Pro:Downloads kappa$ google calendar add "test googleCL for 30 
minits"
kappas-MacBook-Pro:Downloads kappa$ google calendar add "test googleCL for 30 
minutes"
Traceback (most recent call last):
  File "/usr/local/bin/google", line 463, in <module>
    main()
  File "/usr/local/bin/google", line 457, in main
    run_once(options, args)
  File "/usr/local/bin/google", line 356, in run_once
    task.run(client, options, args)
  File "/Library/Python/2.6/site-packages/googlecl/calendar/service.py", line 474, in _run_add
    client.quick_add_event(args, cal_user)
  File "/Library/Python/2.6/site-packages/googlecl/calendar/service.py", line 184, in quick_add_event
    USER_BATCH_URL_FORMAT % calendar_user)
  File "/Library/Python/2.6/site-packages/gdata/calendar/service.py", line 446, in ExecuteBatch
    return self.Post(batch_feed, url, converter=converter)
  File "/Library/Python/2.6/site-packages/gdata/service.py", line 1236, in Post
    media_source=media_source, converter=converter)
  File "/Library/Python/2.6/site-packages/gdata/service.py", line 1346, in PostOrPut
    redirects_remaining - 1, media_source, converter=converter)
  File "/Library/Python/2.6/site-packages/gdata/service.py", line 1346, in PostOrPut
    redirects_remaining - 1, media_source, converter=converter)
  File "/Library/Python/2.6/site-packages/gdata/service.py", line 1346, in PostOrPut
    redirects_remaining - 1, media_source, converter=converter)
  File "/Library/Python/2.6/site-packages/gdata/service.py", line 1346, in PostOrPut
    redirects_remaining - 1, media_source, converter=converter)
  File "/Library/Python/2.6/site-packages/gdata/service.py", line 1354, 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="https://www.google.com/calendar/feeds/default/private/full/batch?gsessioni
d=t7b-3ZOcwd4X0AJXZ_glBg">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?
Mac OS X 10.6.3
Default Mac OS Python

Please provide any additional information below.

Original issue reported on code.google.com by kappad...@gmail.com on 21 Jun 2010 at 10:12

GoogleCodeExporter commented 9 years ago
Interesting. The dreaded 302 has only surfaced in docs before, as far as I know.

Can you add other events? Are any of your other services/tasks affected?

Original comment by tom.h.mi...@gmail.com on 21 Jun 2010 at 12:46

GoogleCodeExporter commented 9 years ago
I am getting the exact error as above
Windows XP, Python 2.6
The problem is intermittent.  I can add several events and then get this error. 
 I don't use any of the services other than calendar.

Original comment by dtver...@gmail.com on 21 Jun 2010 at 7:37

GoogleCodeExporter commented 9 years ago
I forgot to mention that in my testing the 302 problem does not appear to be 
related the actual event data.

Original comment by dtver...@gmail.com on 21 Jun 2010 at 7:42

GoogleCodeExporter commented 9 years ago
Merging into 302 general issue

Original comment by tom.h.mi...@gmail.com on 24 Jun 2010 at 12:22